public class org.graalvm.compiler.core.test.DumpPathTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.test.DumpPathTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/DumpPathTest;
public static java.lang.Object snippet();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.String
dup
ldc "snippet"
invokespecial java.lang.String.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public void testDump();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/DumpPathTest;
Exceptions:
throws java.io.IOException
RuntimeInvisibleAnnotations:
Test()
private static void checkForFiles(java.nio.file.Path, java.lang.String[]);
descriptor: (Ljava/nio/file/Path;[Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=11, args_size=2
start local 0 start local 1 0: aload 1
arraylength
anewarray java.lang.String
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: aload 0
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;
astore 5
start local 5 3: aload 5
invokeinterface java.nio.file.DirectoryStream.iterator:()Ljava/util/Iterator;
astore 7
goto 16
StackMap locals: java.nio.file.Path java.lang.String[] java.lang.String[] java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 5: aload 6
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 8
start local 8 6: iconst_0
istore 9
start local 9 7: goto 15
8: StackMap locals: java.nio.file.Path java.lang.String[] java.lang.String[] java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.nio.file.Path java.util.Iterator java.lang.String int
StackMap stack:
aload 1
iload 9
aaload
astore 10
start local 10 9: aload 8
aload 1
iload 9
aaload
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
10: aload 2
iload 9
aaload
ifnonnull 11
iconst_1
goto 12
StackMap locals: java.lang.String
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: ldc "multiple files found for %s in %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 10
aastore
dup
iconst_1
aload 0
aastore
invokestatic org.graalvm.compiler.core.test.DumpPathTest.assertTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
13: aload 2
iload 9
aload 8
aload 1
iload 9
aaload
ldc ""
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
aastore
end local 10 14: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
15: iload 9
aload 1
arraylength
if_icmplt 8
end local 9 end local 8 end local 6 16: StackMap locals: java.nio.file.Path java.lang.String[] java.lang.String[] java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
17: aload 5
ifnull 23
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 23
StackMap locals: java.nio.file.Path java.lang.String[] java.lang.String[] java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
18: astore 3
aload 5
ifnull 19
aload 5
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 5 StackMap locals:
StackMap stack:
19: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 4
aload 3
ifnonnull 21
aload 4
astore 3
goto 22
StackMap locals:
StackMap stack:
21: aload 3
aload 4
if_acmpeq 22
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 3
athrow
23: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 24: goto 29
25: StackMap locals: int
StackMap stack:
aload 2
iload 3
aaload
ifnull 26
iconst_1
goto 27
StackMap locals:
StackMap stack:
26: iconst_0
StackMap locals:
StackMap stack: int
27: ldc "missing file for extension %s in %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
iload 3
aaload
aastore
dup
iconst_1
aload 0
aastore
invokestatic org.graalvm.compiler.core.test.DumpPathTest.assertTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
28: iinc 3 1
StackMap locals:
StackMap stack:
29: iload 3
aload 2
arraylength
if_icmplt 25
end local 3 30: iconst_1
istore 3
start local 3 31: goto 34
32: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
aload 2
iload 3
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
new java.lang.StringBuilder
dup
aload 2
iconst_0
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " != "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
iload 3
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.core.test.DumpPathTest.assertTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
33: iinc 3 1
StackMap locals:
StackMap stack:
34: iload 3
aload 2
arraylength
if_icmplt 32
end local 3 35: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 directoryPath Ljava/nio/file/Path;
0 36 1 extensions [Ljava/lang/String;
1 36 2 paths [Ljava/lang/String;
3 19 5 stream Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
5 16 6 filePath Ljava/nio/file/Path;
6 16 8 fileName Ljava/lang/String;
7 16 9 i I
9 14 10 extension Ljava/lang/String;
24 30 3 i I
31 35 3 i I
Exception table:
from to target type
3 17 18 any
2 20 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directoryPath
extensions
private static void scrubDirectory(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;
astore 3
start local 3 2: aload 3
invokeinterface java.nio.file.DirectoryStream.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 4
start local 4 4: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isRegularFile:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 7
5: aload 4
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
6: goto 9
StackMap locals: java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.nio.file.Path java.util.Iterator
StackMap stack:
7: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 9
8: aload 4
invokestatic org.graalvm.compiler.core.test.DumpPathTest.scrubDirectory:(Ljava/nio/file/Path;)V
end local 4 9: StackMap locals: java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: aload 3
ifnull 16
aload 3
invokeinterface java.nio.file.DirectoryStream.close:()V
goto 16
StackMap locals: java.nio.file.Path java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
11: astore 1
aload 3
ifnull 12
aload 3
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 3 StackMap locals:
StackMap stack:
12: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 2
aload 1
ifnonnull 14
aload 2
astore 1
goto 15
StackMap locals:
StackMap stack:
14: aload 1
aload 2
if_acmpeq 15
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 1
athrow
16: StackMap locals:
StackMap stack:
aload 0
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
17: goto 20
StackMap locals:
StackMap stack: java.io.IOException
18: astore 1
start local 1 19: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 directoryPath Ljava/nio/file/Path;
2 12 3 stream Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
4 9 4 filePath Ljava/nio/file/Path;
19 20 1 ioe Ljava/io/IOException;
Exception table:
from to target type
2 10 11 any
1 13 13 any
0 17 18 Class java.io.IOException
MethodParameters:
Name Flags
directoryPath
}
SourceFile: "DumpPathTest.java"