public class com.oracle.truffle.api.library.test.ReflectionTest extends com.oracle.truffle.api.test.AbstractParametrizedLibraryTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.library.test.ReflectionTest
super_class: com.oracle.truffle.api.test.AbstractParametrizedLibraryTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.AbstractParametrizedLibraryTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/library/test/ReflectionTest;
public static java.util.List<com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun> data();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_4
anewarray com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun
dup
iconst_0
getstatic com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun.CACHED:Lcom/oracle/truffle/api/test/AbstractParametrizedLibraryTest$TestRun;
aastore
dup
iconst_1
getstatic com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun.UNCACHED:Lcom/oracle/truffle/api/test/AbstractParametrizedLibraryTest$TestRun;
aastore
dup
iconst_2
getstatic com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun.DISPATCHED_CACHED:Lcom/oracle/truffle/api/test/AbstractParametrizedLibraryTest$TestRun;
aastore
dup
iconst_3
getstatic com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun.DISPATCHED_UNCACHED:Lcom/oracle/truffle/api/test/AbstractParametrizedLibraryTest$TestRun;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Lcom/oracle/truffle/api/test/AbstractParametrizedLibraryTest$TestRun;>;
RuntimeVisibleAnnotations:
org.junit.runners.Parameterized$Parameters(name = "{0}")
public void testReflectionDefault();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=1
start local 0 0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
astore 1
start local 1 1: aload 0
ldc Lcom/oracle/truffle/api/library/ReflectionLibrary;
aload 1
invokevirtual com.oracle.truffle.api.library.test.ReflectionTest.createLibrary:(Ljava/lang/Class;Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.library.ReflectionLibrary
astore 2
start local 2 2: ldc Lcom/oracle/truffle/api/library/test/ReflectionTest$ReflectionTestLibrary;
ldc "primitive"
invokestatic com.oracle.truffle.api.library.Message.resolve:(Ljava/lang/Class;Ljava/lang/String;)Lcom/oracle/truffle/api/library/Message;
astore 3
start local 3 3: ldc Lcom/oracle/truffle/api/library/test/ReflectionTest$ReflectionTestLibrary;
ldc "voidReturn"
invokestatic com.oracle.truffle.api.library.Message.resolve:(Ljava/lang/Class;Ljava/lang/String;)Lcom/oracle/truffle/api/library/Message;
astore 4
start local 4 4: bipush 42
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 2
aload 1
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
bipush 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual com.oracle.truffle.api.library.ReflectionLibrary.send:(Ljava/lang/Object;Lcom/oracle/truffle/api/library/Message;[Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: aload 2
aload 1
aload 4
iconst_0
anewarray java.lang.Object
invokevirtual com.oracle.truffle.api.library.ReflectionLibrary.send:(Ljava/lang/Object;Lcom/oracle/truffle/api/library/Message;[Ljava/lang/Object;)Ljava/lang/Object;
pop
6: invokestatic org.junit.Assert.fail:()V
7: goto 9
StackMap locals: com.oracle.truffle.api.library.test.ReflectionTest java.lang.Object com.oracle.truffle.api.library.ReflectionLibrary com.oracle.truffle.api.library.Message com.oracle.truffle.api.library.Message
StackMap stack: java.lang.AbstractMethodError
8: pop
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/library/test/ReflectionTest;
1 10 1 receiver Ljava/lang/Object;
2 10 2 reflection Lcom/oracle/truffle/api/library/ReflectionLibrary;
3 10 3 primitive Lcom/oracle/truffle/api/library/Message;
4 10 4 voidReturn Lcom/oracle/truffle/api/library/Message;
Exception table:
from to target type
5 7 8 Class java.lang.AbstractMethodError
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void testReflectionOnObject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=4, args_size=1
start local 0 0: new com.oracle.truffle.api.library.test.ReflectionTest$ReflectiveObject
dup
invokespecial com.oracle.truffle.api.library.test.ReflectionTest$ReflectiveObject.<init>:()V
astore 1
start local 1 1: aload 0
ldc Lcom/oracle/truffle/api/library/ReflectionLibrary;
aload 1
invokevirtual com.oracle.truffle.api.library.test.ReflectionTest.createLibrary:(Ljava/lang/Class;Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.library.ReflectionLibrary
astore 2
start local 2 2: ldc Lcom/oracle/truffle/api/library/test/ReflectionTest$ReflectionTestLibrary;
ldc "primitive"
invokestatic com.oracle.truffle.api.library.Message.resolve:(Ljava/lang/Class;Ljava/lang/String;)Lcom/oracle/truffle/api/library/Message;
astore 3
start local 3 3: ldc 11
aload 2
aload 1
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
bipush 11
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual com.oracle.truffle.api.library.ReflectionLibrary.send:(Ljava/lang/Object;Lcom/oracle/truffle/api/library/Message;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
4: aload 2
aload 1
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
invokevirtual com.oracle.truffle.api.library.ReflectionLibrary.send:(Ljava/lang/Object;Lcom/oracle/truffle/api/library/Message;[Ljava/lang/Object;)Ljava/lang/Object;
pop
5: invokestatic org.junit.Assert.fail:()V
6: goto 8
StackMap locals: com.oracle.truffle.api.library.test.ReflectionTest com.oracle.truffle.api.library.test.ReflectionTest$ReflectiveObject com.oracle.truffle.api.library.ReflectionLibrary com.oracle.truffle.api.library.Message
StackMap stack: java.lang.ClassCastException
7: pop
8: StackMap locals:
StackMap stack:
aload 2
aload 1
aload 3
iconst_2
anewarray java.lang.Object
dup
iconst_0
bipush 11
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
invokevirtual com.oracle.truffle.api.library.ReflectionLibrary.send:(Ljava/lang/Object;Lcom/oracle/truffle/api/library/Message;[Ljava/lang/Object;)Ljava/lang/Object;
pop
9: invokestatic org.junit.Assert.fail:()V
10: goto 12
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
11: pop
12: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/api/library/test/ReflectionTest;
1 13 1 object Lcom/oracle/truffle/api/library/test/ReflectionTest$ReflectiveObject;
2 13 2 reflection Lcom/oracle/truffle/api/library/ReflectionLibrary;
3 13 3 primitive Lcom/oracle/truffle/api/library/Message;
Exception table:
from to target type
4 6 7 Class java.lang.ClassCastException
8 10 11 Class java.lang.IllegalArgumentException
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "ReflectionTest.java"
NestMembers:
com.oracle.truffle.api.library.test.ReflectionTest$ReflectionTestLibrary com.oracle.truffle.api.library.test.ReflectionTest$ReflectiveObject
InnerClasses:
public abstract ReflectionTestLibrary = com.oracle.truffle.api.library.test.ReflectionTest$ReflectionTestLibrary of com.oracle.truffle.api.library.test.ReflectionTest
ReflectiveObject = com.oracle.truffle.api.library.test.ReflectionTest$ReflectiveObject of com.oracle.truffle.api.library.test.ReflectionTest
public final TestRun = com.oracle.truffle.api.test.AbstractParametrizedLibraryTest$TestRun of com.oracle.truffle.api.test.AbstractParametrizedLibraryTest
public abstract Parameters = org.junit.runners.Parameterized$Parameters of org.junit.runners.Parameterized