public class org.graalvm.compiler.replacements.jdk9.test.MethodHandleImplTest extends org.graalvm.compiler.replacements.test.MethodSubstitutionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.jdk9.test.MethodHandleImplTest
super_class: org.graalvm.compiler.replacements.test.MethodSubstitutionTest
{
static final java.lang.invoke.MethodHandle squareHandle;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Lorg/graalvm/compiler/replacements/jdk9/test/MethodHandleImplTest;
ldc "square"
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic org.graalvm.compiler.replacements.jdk9.test.MethodHandleImplTest.squareHandle:Ljava/lang/invoke/MethodHandle;
1: goto 4
StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
2: astore 0
start local 0 3: new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 4: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
3 4 0 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchMethodException
0 1 2 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.replacements.test.MethodSubstitutionTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/jdk9/test/MethodHandleImplTest;
public static int square(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iload 0
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a I
MethodParameters:
Name Flags
a
public static int invokeSquare();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.graalvm.compiler.replacements.jdk9.test.MethodHandleImplTest.squareHandle:Ljava/lang/invoke/MethodHandle;
bipush 6
invokevirtual java.lang.invoke.MethodHandle.invokeExact:(I)I
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 0
start local 0 3: new java.lang.AssertionError
dup
aload 0
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 4 0 e Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
public void testIsCompileConstant();
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/replacements/jdk9/test/MethodHandleImplTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "MethodHandleImplTest.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles