class org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, java.lang.Object> entries;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/core/test/OptionsVerifierTest;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=8, locals=6, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.entries:Ljava/util/Map;
2: new java.util.ArrayList
dup
ldc "java.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 3: getstatic org.graalvm.compiler.test.GraalTest.Java8OrEarlier:Z
ifeq 6
4: aload 1
ldc "sun.boot.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
5: goto 7
6: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.util.List
StackMap stack:
aload 1
ldc "jdk.module.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
7: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 17
StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.util.List top java.util.Iterator
StackMap stack:
8: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 9: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 10: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 17
11: aload 4
invokevirtual java.io.File.isDirectory:()Z
ifeq 14
12: aload 0
getfield org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.entries:Ljava/util/Map;
aload 2
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: goto 17
StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.util.List java.lang.String java.util.Iterator java.io.File
StackMap stack:
14: aload 2
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 15
aload 2
ldc ".zip"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 17
15: StackMap locals:
StackMap stack:
new java.net.URL
dup
ldc "jar"
ldc ""
new java.lang.StringBuilder
dup
ldc "file:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 16: aload 0
getfield org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.entries:Ljava/util/Map;
aload 2
new java.net.URLClassLoader
dup
iconst_1
anewarray java.net.URL
dup
iconst_0
aload 5
aastore
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 end local 2 17: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
18: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/graalvm/compiler/core/test/OptionsVerifierTest$Classpath;
3 19 1 names Ljava/util/List<Ljava/lang/String;>;
9 17 2 n Ljava/lang/String;
10 17 4 path Ljava/io/File;
16 17 5 url Ljava/net/URL;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.entries:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 1
start local 1 2: aload 1
instanceof java.net.URLClassLoader
ifeq 4
3: aload 1
checkcast java.net.URLClassLoader
invokevirtual java.net.URLClassLoader.close:()V
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/core/test/OptionsVerifierTest$Classpath;
2 4 1 e Ljava/lang/Object;
Exceptions:
throws java.io.IOException
public byte[] getInputStream(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.entries:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 26
StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 2: aload 2
instanceof java.io.File
ifeq 6
3: new java.io.File
dup
aload 2
checkcast java.io.File
aload 1
bipush 47
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 4: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 26
5: aload 4
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
areturn
end local 4 6: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String java.lang.Object java.util.Iterator
StackMap stack:
getstatic org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath.$assertionsDisabled:Z
ifne 7
aload 2
instanceof java.net.URLClassLoader
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 2
checkcast java.net.URLClassLoader
astore 4
start local 4 8: aconst_null
astore 5
aconst_null
astore 6
9: aload 4
aload 1
invokevirtual java.net.URLClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 7
start local 7 10: aload 7
ifnull 20
11: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 8
start local 8 12: sipush 1024
newarray 8
astore 10
start local 10 13: goto 15
start local 9 14: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String java.lang.Object java.util.Iterator java.net.URLClassLoader java.lang.Throwable java.lang.Throwable java.io.InputStream java.io.ByteArrayOutputStream int byte[]
StackMap stack:
aload 8
aload 10
iconst_0
iload 9
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 9 15: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String java.lang.Object java.util.Iterator java.net.URLClassLoader java.lang.Throwable java.lang.Throwable java.io.InputStream java.io.ByteArrayOutputStream top byte[]
StackMap stack:
aload 7
aload 10
iconst_0
aload 10
arraylength
invokevirtual java.io.InputStream.read:([BII)I
dup
istore 9
start local 9 16: iconst_m1
if_icmpne 14
17: aload 8
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
18: aload 7
ifnull 19
aload 7
invokevirtual java.io.InputStream.close:()V
19: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String java.lang.Object java.util.Iterator java.net.URLClassLoader java.lang.Throwable java.lang.Throwable java.io.InputStream java.io.ByteArrayOutputStream int byte[]
StackMap stack: byte[]
areturn
end local 10 end local 9 end local 8 20: StackMap locals:
StackMap stack:
aload 7
ifnull 26
aload 7
invokevirtual java.io.InputStream.close:()V
goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 5
aload 7
ifnull 22
aload 7
invokevirtual java.io.InputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
22: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 6
aload 5
ifnonnull 24
aload 6
astore 5
goto 25
StackMap locals:
StackMap stack:
24: aload 5
aload 6
if_acmpeq 25
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
25: aload 5
athrow
end local 4 end local 2 26: StackMap locals: org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath java.lang.String top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
27: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/graalvm/compiler/core/test/OptionsVerifierTest$Classpath;
0 28 1 classFilePath Ljava/lang/String;
2 26 2 e Ljava/lang/Object;
4 6 4 path Ljava/io/File;
8 26 4 ucl Ljava/net/URLClassLoader;
10 22 7 in Ljava/io/InputStream;
12 20 8 buffer Ljava/io/ByteArrayOutputStream;
14 15 9 nRead I
16 20 9 nRead I
13 20 10 data [B
Exception table:
from to target type
10 18 21 any
9 19 23 any
20 23 23 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
classFilePath
}
SourceFile: "OptionsVerifierTest.java"
NestHost: org.graalvm.compiler.core.test.OptionsVerifierTest
InnerClasses:
Classpath = org.graalvm.compiler.core.test.OptionsVerifierTest$Classpath of org.graalvm.compiler.core.test.OptionsVerifierTest