public class org.graalvm.compiler.test.JLModule
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.test.JLModule
super_class: java.lang.Object
{
private final java.lang.Object realModule;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.Class<?> moduleClass;
descriptor: Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private static final java.lang.reflect.Method getModuleMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method getUnnamedModuleMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method getPackagesMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method isExportedMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method isExported2Method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method addExportsMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=1, args_size=0
0: getstatic org.graalvm.compiler.test.GraalTest.Java8OrEarlier:Z
ifeq 2
1: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Use of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Lorg/graalvm/compiler/test/JLModule;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " only allowed if "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc Lorg/graalvm/compiler/test/GraalTest;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".JDK8OrEarlier is false"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
ldc "java.lang.Module"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
putstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
3: ldc Ljava/lang/Class;
ldc "getModule"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.getModuleMethod:Ljava/lang/reflect/Method;
4: ldc Ljava/lang/ClassLoader;
ldc "getUnnamedModule"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.getUnnamedModuleMethod:Ljava/lang/reflect/Method;
5: getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
ldc "getPackages"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.getPackagesMethod:Ljava/lang/reflect/Method;
6: getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
ldc "isExported"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.isExportedMethod:Ljava/lang/reflect/Method;
7: getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
ldc "isExported"
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
dup
iconst_1
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.isExported2Method:Ljava/lang/reflect/Method;
8: getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
ldc "addExports"
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
dup
iconst_1
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.addExportsMethod:Ljava/lang/reflect/Method;
9: goto 12
StackMap locals:
StackMap stack: java.lang.Exception
10: astore 0
start local 0 11: new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 12: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
11 12 0 e Ljava/lang/Exception;
Exception table:
from to target type
2 9 10 Class java.lang.Exception
public void <init>(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/test/JLModule;
0 3 1 module Ljava/lang/Object;
MethodParameters:
Name Flags
module
public static org.graalvm.compiler.test.JLModule fromClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/graalvm/compiler/test/JLModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.test.JLModule
dup
getstatic org.graalvm.compiler.test.JLModule.getModuleMethod:Ljava/lang/reflect/Method;
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokespecial org.graalvm.compiler.test.JLModule.<init>:(Ljava/lang/Object;)V
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cls Ljava/lang/Class<*>;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;)Lorg/graalvm/compiler/test/JLModule;
MethodParameters:
Name Flags
cls
public static org.graalvm.compiler.test.JLModule getUnnamedModuleFor(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Lorg/graalvm/compiler/test/JLModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.test.JLModule
dup
getstatic org.graalvm.compiler.test.JLModule.getUnnamedModuleMethod:Ljava/lang/reflect/Method;
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokespecial org.graalvm.compiler.test.JLModule.<init>:(Ljava/lang/Object;)V
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cl Ljava/lang/ClassLoader;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
cl
public void exportAllPackagesTo(org.graalvm.compiler.test.JLModule);
descriptor: (Lorg/graalvm/compiler/test/JLModule;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 6
1: aload 0
invokevirtual org.graalvm.compiler.test.JLModule.getPackages:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.graalvm.compiler.test.JLModule org.graalvm.compiler.test.JLModule top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 0
aload 2
aload 1
invokevirtual org.graalvm.compiler.test.JLModule.isExported:(Ljava/lang/String;Lorg/graalvm/compiler/test/JLModule;)Z
ifne 5
4: aload 0
aload 2
aload 1
invokevirtual org.graalvm.compiler.test.JLModule.addExports:(Ljava/lang/String;Lorg/graalvm/compiler/test/JLModule;)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: StackMap locals: org.graalvm.compiler.test.JLModule org.graalvm.compiler.test.JLModule
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/test/JLModule;
0 7 1 module Lorg/graalvm/compiler/test/JLModule;
3 5 2 pkg Ljava/lang/String;
MethodParameters:
Name Flags
module
public java.util.Set<java.lang.String> getPackages();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.test.JLModule.getPackagesMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/test/JLModule;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public boolean isExported(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.test.JLModule.isExportedMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 3: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/test/JLModule;
0 4 1 pn Ljava/lang/String;
3 4 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
pn
public boolean isExported(java.lang.String, org.graalvm.compiler.test.JLModule);
descriptor: (Ljava/lang/String;Lorg/graalvm/compiler/test/JLModule;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.test.JLModule.isExported2Method:Ljava/lang/reflect/Method;
aload 0
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 3: new java.lang.AssertionError
dup
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/test/JLModule;
0 4 1 pn Ljava/lang/String;
0 4 2 other Lorg/graalvm/compiler/test/JLModule;
3 4 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
pn
other
public void addExports(java.lang.String, org.graalvm.compiler.test.JLModule);
descriptor: (Ljava/lang/String;Lorg/graalvm/compiler/test/JLModule;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.test.JLModule.addExportsMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 3
start local 3 3: new java.lang.AssertionError
dup
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/test/JLModule;
0 5 1 pn Ljava/lang/String;
0 5 2 other Lorg/graalvm/compiler/test/JLModule;
3 4 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
pn
other
}
SourceFile: "JLModule.java"