public class com.oracle.truffle.sl.test.SLParseErrorTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.sl.test.SLParseErrorTest
super_class: java.lang.Object
{
private org.graalvm.polyglot.Context context;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
public void setUp();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "sl"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
RuntimeVisibleAnnotations:
org.junit.Before()
public void tearDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
RuntimeVisibleAnnotations:
org.junit.After()
public void testParseError();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "sl"
ldc "function testSyntaxError(a) {break;} function main() {return testSyntaxError;}"
ldc "testSyntaxError.sl"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: ldc "Should not reach here."
iconst_0
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
end local 1 3: goto 7
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 1
start local 1 5: ldc "Should be a syntax error."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.isSyntaxError:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
6: ldc "Should have source section."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
1 3 1 src Lorg/graalvm/polyglot/Source;
5 7 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
0 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testParseErrorEmpty();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "sl"
ldc ""
ldc "testSyntaxErrorEmpty.sl"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: ldc "Should not reach here."
iconst_0
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
end local 1 3: goto 7
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 1
start local 1 5: ldc "Should be a syntax error."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.isSyntaxError:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
6: ldc "Should have source section."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
1 3 1 src Lorg/graalvm/polyglot/Source;
5 7 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
0 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testParseErrorEOF1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "sl"
ldc "function main"
ldc "testSyntaxErrorEOF1.sl"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: ldc "Should not reach here."
iconst_0
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
end local 1 3: goto 7
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 1
start local 1 5: ldc "Should be a syntax error."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.isSyntaxError:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
6: ldc "Should have source section."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
1 3 1 src Lorg/graalvm/polyglot/Source;
5 7 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
0 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testParseErrorEOF2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "sl"
ldc "function\n"
ldc "testSyntaxErrorEOF2.sl"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.sl.test.SLParseErrorTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: ldc "Should not reach here."
iconst_0
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
end local 1 3: goto 7
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 1
start local 1 5: ldc "Should be a syntax error."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.isSyntaxError:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
6: ldc "Should have source section."
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/sl/test/SLParseErrorTest;
1 3 1 src Lorg/graalvm/polyglot/Source;
5 7 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
0 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "SLParseErrorTest.java"
InnerClasses:
public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source