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
private static final java.lang.reflect.Method modulesAddExportsMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.reflect.Method modulesAddOpensMethod;
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 "jdk.internal.module.Modules"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
start local 0 4: 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;
5: 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;
6: 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;
7: 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;
8: 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;
9: 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;
10: aload 0
ldc "addExports"
iconst_3
anewarray java.lang.Class
dup
iconst_0
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
dup
iconst_1
ldc Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.modulesAddExportsMethod:Ljava/lang/reflect/Method;
11: aload 0
ldc "addOpens"
iconst_3
anewarray java.lang.Class
dup
iconst_0
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
dup
iconst_1
ldc Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.test.JLModule.moduleClass:Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.test.JLModule.modulesAddOpensMethod:Ljava/lang/reflect/Method;
end local 0 12: goto 15
StackMap locals:
StackMap stack: java.lang.Exception
13: astore 0
start local 0 14: new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 15: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
4 12 0 modulesClass Ljava/lang/Class<*>;
14 15 0 e Ljava/lang/Exception;
Exception table:
from to target type
2 12 13 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
private static java.lang.Object unbox(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.graalvm.compiler.test.JLModule
ifeq 2
1: aload 0
checkcast org.graalvm.compiler.test.JLModule
getfield org.graalvm.compiler.test.JLModule.realModule:Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static void uncheckedAddExports(java.lang.Object, java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.test.JLModule.modulesAddExportsMethod:Ljava/lang/reflect/Method;
aconst_null
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokestatic org.graalvm.compiler.test.JLModule.unbox:(Ljava/lang/Object;)Ljava/lang/Object;
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 2
invokestatic org.graalvm.compiler.test.JLModule.unbox:(Ljava/lang/Object;)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 m1 Ljava/lang/Object;
0 5 1 pn Ljava/lang/String;
0 5 2 m2 Ljava/lang/Object;
3 4 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
m1
pn
m2
public static void openAllPackagesForReflectionTo(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: 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;
astore 2
start local 2 1: getstatic org.graalvm.compiler.test.JLModule.getModuleMethod:Ljava/lang/reflect/Method;
aload 1
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 2
aload 3
if_acmpeq 12
3: getstatic org.graalvm.compiler.test.JLModule.getPackagesMethod:Ljava/lang/reflect/Method;
aload 2
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String[]
astore 4
start local 4 4: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 8
StackMap locals: java.lang.Class java.lang.Class java.lang.Object java.lang.Object java.lang.String[] top int int java.lang.String[]
StackMap stack:
5: aload 8
iload 6
aaload
astore 5
start local 5 6: getstatic org.graalvm.compiler.test.JLModule.modulesAddOpensMethod:Ljava/lang/reflect/Method;
aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 3
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 7: iinc 6 1
StackMap locals:
StackMap stack:
8: iload 6
iload 7
if_icmplt 5
end local 4 end local 3 end local 2 9: goto 12
StackMap locals: java.lang.Class java.lang.Class
StackMap stack: java.lang.Exception
10: astore 2
start local 2 11: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 moduleMember Ljava/lang/Class<*>;
0 13 1 requestor Ljava/lang/Class<*>;
1 9 2 moduleToOpen Ljava/lang/Object;
2 9 3 requestorModule Ljava/lang/Object;
4 9 4 packages [Ljava/lang/String;
6 7 5 pkg Ljava/lang/String;
11 12 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 9 10 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
moduleMember
requestor
public static void openForReflectionTo(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: 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;
astore 2
start local 2 1: getstatic org.graalvm.compiler.test.JLModule.getModuleMethod:Ljava/lang/reflect/Method;
aload 1
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 2
aload 3
if_acmpeq 7
3: getstatic org.graalvm.compiler.test.JLModule.modulesAddOpensMethod:Ljava/lang/reflect/Method;
aconst_null
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 0
invokevirtual java.lang.Class.getPackage:()Ljava/lang/Package;
invokevirtual java.lang.Package.getName:()Ljava/lang/String;
aastore
dup
iconst_2
aload 3
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 4: goto 7
StackMap locals:
StackMap stack: java.lang.Exception
5: astore 2
start local 2 6: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 declaringClass Ljava/lang/Class<*>;
0 8 1 accessor Ljava/lang/Class<*>;
1 4 2 moduleToOpen Ljava/lang/Object;
2 4 3 accessorModule Ljava/lang/Object;
6 7 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
declaringClass
accessor
public static void exportPackageTo(java.lang.Class<?>, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: 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;
astore 3
start local 3 1: getstatic org.graalvm.compiler.test.JLModule.getModuleMethod:Ljava/lang/reflect/Method;
aload 2
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 2: aload 3
aload 4
if_acmpeq 7
3: getstatic org.graalvm.compiler.test.JLModule.modulesAddExportsMethod:Ljava/lang/reflect/Method;
aconst_null
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 4
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 4: goto 7
StackMap locals:
StackMap stack: java.lang.Exception
5: astore 3
start local 3 6: new java.lang.AssertionError
dup
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 moduleMember Ljava/lang/Class<*>;
0 8 1 packageName Ljava/lang/String;
0 8 2 requestor Ljava/lang/Class<*>;
1 4 3 moduleToExport Ljava/lang/Object;
2 4 4 requestorModule Ljava/lang/Object;
6 7 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
moduleMember
packageName
requestor
}
SourceFile: "JLModule.java"