public class com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest extends com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest
super_class: com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
{
static final java.lang.String OTHER_LANGUAGE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "InstrumentationExceptionTest_OtherLanguage"
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.polyglot.AbstractPolyglotTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest;
public void testInstrumentCreateException();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.<init>:()V
astore 1
start local 1 1: new com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestProxyInstrument
dup
aload 1
invokespecial com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestProxyInstrument.<init>:(Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestContextListener;)V
astore 2
start local 2 2: new com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestEventListener
dup
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestEventListener.<init>:(Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest;)V
astore 3
start local 3 3: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
4: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onContextCreated:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
5: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
6: invokestatic org.junit.Assert.fail:()V
7: goto 10
StackMap locals: com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener com.oracle.truffle.api.test.polyglot.ProxyInstrument com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestEventListener
StackMap stack: org.graalvm.polyglot.PolyglotException
8: astore 4
start local 4 9: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 4 10: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onContextCreated:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
11: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextCreated:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
12: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
13: invokestatic org.junit.Assert.fail:()V
14: goto 17
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
15: astore 4
start local 4 16: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 4 17: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextCreated:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
18: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextInitialized:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
19: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
20: invokestatic org.junit.Assert.fail:()V
21: goto 24
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
22: astore 4
start local 4 23: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 4 24: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextInitialized:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
25: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
26: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextFinalized:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
27: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
28: invokestatic org.junit.Assert.fail:()V
29: goto 34
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
30: astore 4
start local 4 31: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
32: aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextFinalized:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
33: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 4 34: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextFinalized:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
35: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
36: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextDisposed:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
37: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
38: invokestatic org.junit.Assert.fail:()V
39: goto 44
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
40: astore 4
start local 4 41: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
42: aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextDisposed:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
43: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 4 44: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onLanguageContextDisposed:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
45: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "proxyLanguage"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
46: aload 1
aload 3
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onContextClosed:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
47: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
48: invokestatic org.junit.Assert.fail:()V
49: goto 54
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
50: astore 4
start local 4 51: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
52: aload 1
aconst_null
putfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener.onContextClosed:Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
53: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 4 54: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 55 0 this Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest;
1 55 1 listener Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestContextListener;
2 55 2 instrument Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;
3 55 3 triggerFailure Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest$TestEventListener;
9 10 4 e Lorg/graalvm/polyglot/PolyglotException;
16 17 4 e Lorg/graalvm/polyglot/PolyglotException;
23 24 4 e Lorg/graalvm/polyglot/PolyglotException;
31 34 4 e Lorg/graalvm/polyglot/PolyglotException;
41 44 4 e Lorg/graalvm/polyglot/PolyglotException;
51 54 4 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
4 7 8 Class org.graalvm.polyglot.PolyglotException
10 14 15 Class org.graalvm.polyglot.PolyglotException
17 21 22 Class org.graalvm.polyglot.PolyglotException
26 29 30 Class org.graalvm.polyglot.PolyglotException
36 39 40 Class org.graalvm.polyglot.PolyglotException
46 49 50 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
private static void triggerParseFailure(com.oracle.truffle.api.TruffleLanguage$Env, com.oracle.truffle.api.TruffleContext);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;Lcom/oracle/truffle/api/TruffleContext;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aconst_null
invokevirtual com.oracle.truffle.api.TruffleContext.enter:(Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
astore 2
start local 2 1: aload 0
ldc "InstrumentationExceptionTest_OtherLanguage"
ldc ""
ldc ""
invokestatic com.oracle.truffle.api.source.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lcom/oracle/truffle/api/source/Source$LiteralBuilder;
invokevirtual com.oracle.truffle.api.source.Source$LiteralBuilder.build:()Lcom/oracle/truffle/api/source/Source;
iconst_0
anewarray java.lang.String
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.parsePublic:(Lcom/oracle/truffle/api/source/Source;[Ljava/lang/String;)Lcom/oracle/truffle/api/CallTarget;
pop
2: goto 6
StackMap locals: com.oracle.truffle.api.TruffleLanguage$Env com.oracle.truffle.api.TruffleContext java.lang.Object
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 1
aconst_null
aload 2
invokevirtual com.oracle.truffle.api.TruffleContext.leave:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)V
5: aload 3
athrow
6: StackMap locals:
StackMap stack:
aload 1
aconst_null
aload 2
invokevirtual com.oracle.truffle.api.TruffleContext.leave:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
0 8 1 c Lcom/oracle/truffle/api/TruffleContext;
1 8 2 prev Ljava/lang/Object;
Exception table:
from to target type
1 3 3 any
MethodParameters:
Name Flags
env
c
static com.oracle.truffle.api.TruffleLanguage$Env access$0(com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest);
descriptor: (Lcom/oracle/truffle/api/instrumentation/test/InternalErrorPropagationTest;)Lcom/oracle/truffle/api/TruffleLanguage$Env;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "InternalErrorPropagationTest.java"
NestMembers:
com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$OtherLanguage com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestEventListener com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestProxyInstrument
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public OtherLanguage = com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$OtherLanguage of com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest
TestContextListener = com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestContextListener of com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest
final TestEventListener = com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestEventListener of com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest
public TestProxyInstrument = com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest$TestProxyInstrument of com.oracle.truffle.api.instrumentation.test.InternalErrorPropagationTest
public final LiteralBuilder = com.oracle.truffle.api.source.Source$LiteralBuilder of com.oracle.truffle.api.source.Source