public final class org.graalvm.compiler.core.test.MethodHandleEagerResolution extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.core.test.MethodHandleEagerResolution
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static final java.lang.invoke.MethodHandle FIELD_HANDLE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: ldc Ljava/lang/String;
ldc "value"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: goto 4
end local 0 StackMap locals:
StackMap stack: java.lang.NoSuchFieldException
2: astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokevirtual java.lang.NoSuchFieldException.getMessage:()Ljava/lang/String;
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 start local 0 4: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
5: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
aload 0
invokevirtual java.lang.invoke.MethodHandles$Lookup.unreflectGetter:(Ljava/lang/reflect/Field;)Ljava/lang/invoke/MethodHandle;
putstatic org.graalvm.compiler.core.test.MethodHandleEagerResolution.FIELD_HANDLE:Ljava/lang/invoke/MethodHandle;
6: goto 9
StackMap locals:
StackMap stack: java.lang.IllegalAccessException
7: astore 1
start local 1 8: new java.lang.RuntimeException
dup
ldc "unable to initialize field handle"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 9: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 2 0 field Ljava/lang/reflect/Field;
4 9 0 field Ljava/lang/reflect/Field;
3 4 1 ex Ljava/lang/NoSuchFieldException;
8 9 1 e Ljava/lang/IllegalAccessException;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchFieldException
5 6 7 Class java.lang.IllegalAccessException
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/MethodHandleEagerResolution;
public static char[] getBackingCharArray(java.lang.String);
descriptor: (Ljava/lang/String;)[C
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.MethodHandleEagerResolution.FIELD_HANDLE:Ljava/lang/invoke/MethodHandle;
aload 0
invokevirtual java.lang.invoke.MethodHandle.invokeExact:(Ljava/lang/String;)[C
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
pop
3: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 str Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
str
public void testFieldInvokeExact();
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/MethodHandleEagerResolution;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "MethodHandleEagerResolution.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles