public class com.oracle.truffle.api.test.polyglot.FileSystemProviderTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest
super_class: java.lang.Object
{
private java.nio.file.Path workDir;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path invalidWorkDir;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path existingAbsolute;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path existingRelative;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private org.graalvm.polyglot.io.FileSystem fs;
descriptor: Lorg/graalvm/polyglot/io/FileSystem;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
public void setUp();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempDirectory:(Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
putfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.invalidWorkDir:Ljava/nio/file/Path;
1: aload 0
ldc Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempDirectory:(Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
putfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
2: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "existing.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
putfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
3: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
putfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
4: aload 0
invokestatic org.graalvm.polyglot.io.FileSystem.newDefaultFileSystem:()Lorg/graalvm/polyglot/io/FileSystem;
putfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
5: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.setCurrentWorkingDirectory:(Ljava/nio/file/Path;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Before()
public void tearDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
invokevirtual com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.delete:(Ljava/nio/file/Path;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
3: aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.invalidWorkDir:Ljava/nio/file/Path;
invokevirtual com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.delete:(Ljava/nio/file/Path;)V
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.invalidWorkDir:Ljava/nio/file/Path;
invokevirtual com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.delete:(Ljava/nio/file/Path;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exception table:
from to target type
0 2 2 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.After()
public void testCheckAccess();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
ldc Ljava/nio/file/AccessMode;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.checkAccess:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/LinkOption;)V
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc Ljava/nio/file/AccessMode;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.checkAccess:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/LinkOption;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCopy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "copy1.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
2: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
new java.lang.String
dup
aload 1
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "copy2.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
4: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
5: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
new java.lang.String
dup
aload 1
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "copy3.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 2
start local 2 7: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 2
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
8: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
new java.lang.String
dup
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "copy3.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 10 1 targetAbsolute Ljava/nio/file/Path;
7 10 2 targetRelative Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCreateDirectory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "createDir1.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokeinterface org.graalvm.polyglot.io.FileSystem.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V
2: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
3: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "createDir2.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 2
start local 2 4: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 2
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokeinterface org.graalvm.polyglot.io.FileSystem.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V
5: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "createDir2.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 7 1 targetAbsolute Ljava/nio/file/Path;
4 7 2 targetRelative Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDelete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "delete.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createFile:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
2: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
invokeinterface org.graalvm.polyglot.io.FileSystem.delete:(Ljava/nio/file/Path;)V
3: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
4: aload 1
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createFile:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
5: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 2
start local 2 6: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 2
invokeinterface org.graalvm.polyglot.io.FileSystem.delete:(Ljava/nio/file/Path;)V
7: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 9 1 targetAbsolute Ljava/nio/file/Path;
6 9 2 targetRelative Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "move_src.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
2: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "move_tgt.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
aload 2
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
4: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
5: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
7: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "move_tgt2.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
8: aload 2
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 3
start local 3 9: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
aload 3
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
10: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
11: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
12: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
13: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "move_tgt3.txt"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
14: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
aload 2
iconst_0
anewarray java.nio.file.CopyOption
invokeinterface org.graalvm.polyglot.io.FileSystem.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V
15: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
16: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 18 1 moveSourceAbsolute Ljava/nio/file/Path;
3 18 2 moveTargetAbsolute Ljava/nio/file/Path;
9 18 3 moveTargetRelative Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testNewByteChannel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
getstatic java.nio.file.StandardOpenOption.READ:Ljava/nio/file/StandardOpenOption;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokeinterface org.graalvm.polyglot.io.FileSystem.newByteChannel:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;
astore 3
start local 3 2: sipush 1024
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 4
start local 4 3: aload 3
aload 4
invokeinterface java.nio.channels.SeekableByteChannel.read:(Ljava/nio/ByteBuffer;)I
pop
4: aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
5: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
aload 4
invokevirtual java.nio.charset.Charset.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 6: aload 3
ifnull 12
aload 3
invokeinterface java.nio.channels.SeekableByteChannel.close:()V
goto 12
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.lang.Throwable java.lang.Throwable java.nio.channels.SeekableByteChannel
StackMap stack: java.lang.Throwable
7: astore 1
aload 3
ifnull 8
aload 3
invokeinterface java.nio.channels.SeekableByteChannel.close:()V
end local 3 StackMap locals:
StackMap stack:
8: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 2
aload 1
ifnonnull 10
aload 2
astore 1
goto 11
StackMap locals:
StackMap stack:
10: aload 1
aload 2
if_acmpeq 11
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 1
athrow
12: StackMap locals:
StackMap stack:
aconst_null
astore 1
aconst_null
astore 2
13: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
getstatic java.nio.file.StandardOpenOption.READ:Ljava/nio/file/StandardOpenOption;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokeinterface org.graalvm.polyglot.io.FileSystem.newByteChannel:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;
astore 3
start local 3 14: sipush 1024
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 4
start local 4 15: aload 3
aload 4
invokeinterface java.nio.channels.SeekableByteChannel.read:(Ljava/nio/ByteBuffer;)I
pop
16: aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
17: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
aload 4
invokevirtual java.nio.charset.Charset.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 18: aload 3
ifnull 24
aload 3
invokeinterface java.nio.channels.SeekableByteChannel.close:()V
goto 24
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.lang.Throwable java.lang.Throwable java.nio.channels.SeekableByteChannel
StackMap stack: java.lang.Throwable
19: astore 1
aload 3
ifnull 20
aload 3
invokeinterface java.nio.channels.SeekableByteChannel.close:()V
end local 3 StackMap locals:
StackMap stack:
20: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 2
aload 1
ifnonnull 22
aload 2
astore 1
goto 23
StackMap locals:
StackMap stack:
22: aload 1
aload 2
if_acmpeq 23
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 1
athrow
24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
2 8 3 ch Ljava/nio/channels/SeekableByteChannel;
3 6 4 buffer Ljava/nio/ByteBuffer;
14 20 3 ch Ljava/nio/channels/SeekableByteChannel;
15 18 4 buffer Ljava/nio/ByteBuffer;
Exception table:
from to target type
2 6 7 any
1 9 9 any
14 18 19 any
13 21 21 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testNewDirectoryStream();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
ldc "newdir"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 2
start local 2 2: aload 1
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
3: aload 1
ldc "test"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createFile:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
4: aconst_null
astore 3
aconst_null
astore 4
5: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 1
invokedynamic accept()Ljava/nio/file/DirectoryStream$Filter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$0(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface org.graalvm.polyglot.io.FileSystem.newDirectoryStream:(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;
astore 5
start local 5 6: aload 5
invokeinterface java.nio.file.DirectoryStream.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$1(Ljava/nio/file/Path;)Ljava/lang/String; (6)
(Ljava/nio/file/Path;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$2(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findAny:()Ljava/util/Optional;
astore 6
start local 6 7: aload 6
invokevirtual java.util.Optional.isPresent:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 6 8: aload 5
ifnull 14
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 14
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
9: astore 3
aload 5
ifnull 10
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 5 StackMap locals:
StackMap stack:
10: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 4
aload 3
ifnonnull 12
aload 4
astore 3
goto 13
StackMap locals:
StackMap stack:
12: aload 3
aload 4
if_acmpeq 13
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
15: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 2
invokedynamic accept()Ljava/nio/file/DirectoryStream$Filter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$3(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface org.graalvm.polyglot.io.FileSystem.newDirectoryStream:(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;
astore 5
start local 5 16: aload 5
invokeinterface java.nio.file.DirectoryStream.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$4(Ljava/nio/file/Path;)Ljava/lang/String; (6)
(Ljava/nio/file/Path;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/oracle/truffle/api/test/polyglot/FileSystemProviderTest.lambda$5(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findAny:()Ljava/util/Optional;
astore 6
start local 6 17: aload 6
invokevirtual java.util.Optional.isPresent:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 6 18: aload 5
ifnull 24
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 24
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
19: astore 3
aload 5
ifnull 20
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 5 StackMap locals:
StackMap stack:
20: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 4
aload 3
ifnonnull 22
aload 4
astore 3
goto 23
StackMap locals:
StackMap stack:
22: aload 3
aload 4
if_acmpeq 23
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 3
athrow
24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 25 1 dirAbsolute Ljava/nio/file/Path;
2 25 2 dirRelative Ljava/nio/file/Path;
6 10 5 dirents Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
7 8 6 res Ljava/util/Optional<*>;
16 20 5 dirents Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
17 18 6 res Ljava/util/Optional<*>;
Exception table:
from to target type
6 8 9 any
5 11 11 any
16 18 19 any
15 21 21 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testReadAttributes();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
ldc "basic:isRegularFile"
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.readAttributes:(Ljava/nio/file/Path;Ljava/lang/String;[Ljava/nio/file/LinkOption;)Ljava/util/Map;
ldc "isRegularFile"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc "basic:isRegularFile"
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.readAttributes:(Ljava/nio/file/Path;Ljava/lang/String;[Ljava/nio/file/LinkOption;)Ljava/util/Map;
ldc "isRegularFile"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testSetAttribute();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.nio.file.attribute.FileTime.fromMillis:(J)Ljava/nio/file/attribute/FileTime;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
ldc "basic:lastModifiedTime"
aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.setAttribute:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/Object;[Ljava/nio/file/LinkOption;)V
2: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc "basic:lastModifiedTime"
aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.setAttribute:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/Object;[Ljava/nio/file/LinkOption;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
1 4 1 ft Ljava/nio/file/attribute/FileTime;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testToAbsolutePath();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.toAbsolutePath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.toAbsolutePath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testToRealPath();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.toRealPath:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingAbsolute:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.toRealPath:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testSetCurrentWorkingDirectory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc Ljava/nio/file/AccessMode;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.checkAccess:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/LinkOption;)V
1: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.invalidWorkDir:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.setCurrentWorkingDirectory:(Ljava/nio/file/Path;)V
2: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc Ljava/nio/file/AccessMode;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.checkAccess:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/LinkOption;)V
3: ldc "Should not reach here, NoSuchFileException expected."
invokestatic org.junit.Assert.fail:(Ljava/lang/String;)V
4: goto 10
StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
5: pop
6: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 1
8: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.setCurrentWorkingDirectory:(Ljava/nio/file/Path;)V
9: aload 1
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.workDir:Ljava/nio/file/Path;
invokeinterface org.graalvm.polyglot.io.FileSystem.setCurrentWorkingDirectory:(Ljava/nio/file/Path;)V
11: aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.fs:Lorg/graalvm/polyglot/io/FileSystem;
aload 0
getfield com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.existingRelative:Ljava/nio/file/Path;
ldc Ljava/nio/file/AccessMode;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface org.graalvm.polyglot.io.FileSystem.checkAccess:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/LinkOption;)V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
Exception table:
from to target type
2 4 5 Class java.nio.file.NoSuchFileException
1 7 7 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
private void delete(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 13
1: aconst_null
astore 2
aconst_null
astore 3
2: aload 1
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;
astore 4
start local 4 3: aload 4
invokeinterface java.nio.file.DirectoryStream.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 5
start local 5 5: aload 0
aload 5
invokevirtual com.oracle.truffle.api.test.polyglot.FileSystemProviderTest.delete:(Ljava/nio/file/Path;)V
end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 4
ifnull 13
aload 4
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 13
StackMap locals: com.oracle.truffle.api.test.polyglot.FileSystemProviderTest java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
8: astore 2
aload 4
ifnull 9
aload 4
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 4 StackMap locals:
StackMap stack:
9: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 3
aload 2
ifnonnull 11
aload 3
astore 2
goto 12
StackMap locals:
StackMap stack:
11: aload 2
aload 3
if_acmpeq 12
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 2
athrow
13: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/oracle/truffle/api/test/polyglot/FileSystemProviderTest;
0 15 1 path Ljava/nio/file/Path;
3 9 4 childen Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
5 6 5 child Ljava/nio/file/Path;
Exception table:
from to target type
3 7 8 any
2 10 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
static org.graalvm.polyglot.io.FileSystem newFullIOFileSystem(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Lorg/graalvm/polyglot/io/FileSystem;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: ldc "com.oracle.truffle.polyglot.FileSystems"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 1: aload 1
ldc "newDefaultFileSystem"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/nio/file/Path;
aastore
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
start local 2 2: aload 2
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
3: aload 2
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.io.FileSystem
4: areturn
end local 2 end local 1 5: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 1
start local 1 6: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 workDir Ljava/nio/file/Path;
1 5 1 clz Ljava/lang/Class<*>;
2 5 2 m Ljava/lang/reflect/Method;
6 7 1 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 4 5 Class java.lang.ReflectiveOperationException
MethodParameters:
Name Flags
workDir final
private static boolean lambda$0(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
private static java.lang.String lambda$1(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/nio/file/Path;
private static boolean lambda$2(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "test"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n Ljava/lang/String;
private static boolean lambda$3(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
private static java.lang.String lambda$4(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/nio/file/Path;
private static boolean lambda$5(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "test"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n Ljava/lang/String;
}
SourceFile: "FileSystemProviderTest.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Filter = java.nio.file.DirectoryStream$Filter of java.nio.file.DirectoryStream