public class com.oracle.truffle.api.test.polyglot.MIMETypeTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.test.polyglot.MIMETypeTest
super_class: java.lang.Object
{
private static final java.lang.String TEXT_MIMETYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "text/test-js"
private static final java.lang.String APPLICATION_MIMETYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application/test-js"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
ldc Lcom/oracle/truffle/api/TruffleLanguage$Registration;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast com.oracle.truffle.api.TruffleLanguage$Registration
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
invokeinterface com.oracle.truffle.api.TruffleLanguage$Registration.mimeType:()[Ljava/lang/String;
pop
end local 0 3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 reg Lcom/oracle/truffle/api/TruffleLanguage$Registration;
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/api/test/polyglot/MIMETypeTest;
public void testMIMETypeLanguage2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
ldc "MIMETypeLanguage2"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Language
astore 2
start local 2 2: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
iconst_2
if_icmpne 3
iconst_1
goto 4
StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
ldc "text/test-js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
ldc "application/test-js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: ldc "text/test-js"
aload 2
invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
8: aload 1
invokevirtual org.graalvm.polyglot.Engine.close:()V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 10 1 engine Lorg/graalvm/polyglot/Engine;
2 10 2 language Lorg/graalvm/polyglot/Language;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMIMETypeLanguage3();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
ldc "MIMETypeLanguage3"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Language
astore 2
start local 2 2: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
iconst_1
if_icmpne 3
iconst_1
goto 4
StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
ldc "text/test-js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: ldc "text/test-js"
aload 2
invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 1
invokevirtual org.graalvm.polyglot.Engine.close:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 9 1 engine Lorg/graalvm/polyglot/Engine;
2 9 2 language Lorg/graalvm/polyglot/Language;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMIMETypeLanguage4();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
ldc "MIMETypeLanguage4"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Language
astore 2
start local 2 2: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
iconst_1
if_icmpne 3
iconst_1
goto 4
StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
ldc "text/test-js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: ldc "text/test-js"
aload 2
invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 1
invokevirtual org.graalvm.polyglot.Engine.close:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 9 1 engine Lorg/graalvm/polyglot/Engine;
2 9 2 language Lorg/graalvm/polyglot/Language;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDefaultMimeBytes();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1
start local 1 1: ldc "foobar"
ldc ".tjs"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
astore 2
start local 2 2: aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.deleteOnExit:()V
3: ldc "MIMETypeLanguage5"
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/io/File;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 3
start local 3 4: aload 3
invokevirtual org.graalvm.polyglot.Source.hasBytes:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 3
invokevirtual org.graalvm.polyglot.Source.hasCharacters:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
6: ldc "application/test-js"
aload 3
invokevirtual org.graalvm.polyglot.Source.getMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 1
aload 3
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
8: ldc "MIMETypeLanguage5"
ldc ""
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
ldc "application/test-js"
invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 3
9: aload 1
aload 3
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
10: invokestatic org.junit.Assert.fail:()V
11: goto 16
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
12: astore 4
start local 4 13: ldc "Error evaluating the source. MIME type 'application/test-js' is byte based for language 'MIMETypeLanguage5' but the source contents are character based."
14: aload 4
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
15: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 16: StackMap locals:
StackMap stack:
ldc "MIMETypeLanguage5"
ldc ""
ldc ""
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.build:()Lorg/graalvm/polyglot/Source;
astore 4
start local 4 17: aload 1
aload 4
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
18: invokestatic org.junit.Assert.fail:()V
19: goto 22
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
20: astore 5
start local 5 21: ldc "Error evaluating the source. The language MIMETypeLanguage5 only supports binary based sources but a character based source was provided."
aload 5
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 5 22: StackMap locals:
StackMap stack:
ldc "MIMETypeLanguage5"
ldc ""
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
ldc "application/x-illegal"
invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 5
start local 5 23: aload 1
aload 5
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
24: invokestatic org.junit.Assert.fail:()V
25: goto 30
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
26: astore 6
start local 6 27: ldc "Error evaluating the source. The language MIMETypeLanguage5 does not support MIME type application/x-illegal. Supported MIME types are [application/test-js]."
28: aload 6
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
29: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 6 30: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
31: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 32 1 context Lorg/graalvm/polyglot/Context;
2 32 2 file Ljava/nio/file/Path;
4 32 3 source Lorg/graalvm/polyglot/Source;
13 16 4 e Ljava/lang/IllegalArgumentException;
17 32 4 byteBasedSource Lorg/graalvm/polyglot/Source;
21 22 5 e Ljava/lang/IllegalArgumentException;
23 32 5 illegalSource Lorg/graalvm/polyglot/Source;
27 30 6 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
9 11 12 Class java.lang.IllegalArgumentException
17 19 20 Class java.lang.IllegalArgumentException
23 25 26 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDefaultMimeCharacters();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1
start local 1 1: ldc "foobar"
ldc ".tjs"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
astore 2
start local 2 2: aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.deleteOnExit:()V
3: ldc "MIMETypeLanguage6"
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/io/File;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 3
start local 3 4: aload 3
invokevirtual org.graalvm.polyglot.Source.hasBytes:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
5: aload 3
invokevirtual org.graalvm.polyglot.Source.hasCharacters:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: ldc "application/test-js"
aload 3
invokevirtual org.graalvm.polyglot.Source.getMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 1
aload 3
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
8: ldc "MIMETypeLanguage6"
iconst_4
newarray 8
dup
iconst_0
iconst_1
bastore
dup
iconst_1
iconst_2
bastore
dup
iconst_2
iconst_3
bastore
dup
iconst_3
iconst_4
bastore
invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
ldc "application/test-js"
invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 3
9: aload 1
aload 3
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
10: invokestatic org.junit.Assert.fail:()V
11: goto 16
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
12: astore 4
start local 4 13: ldc "Error evaluating the source. MIME type 'application/test-js' is character based for language 'MIMETypeLanguage6' but the source contents are byte based."
14: aload 4
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
15: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 16: StackMap locals:
StackMap stack:
ldc "MIMETypeLanguage6"
iconst_4
newarray 8
dup
iconst_0
iconst_1
bastore
dup
iconst_1
iconst_2
bastore
dup
iconst_2
iconst_3
bastore
dup
iconst_3
iconst_4
bastore
invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 4
start local 4 17: aload 1
aload 4
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
18: invokestatic org.junit.Assert.fail:()V
19: goto 22
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
20: astore 5
start local 5 21: ldc "Error evaluating the source. The language MIMETypeLanguage6 only supports character based sources but a binary based source was provided."
aload 5
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 5 22: StackMap locals:
StackMap stack:
ldc "MIMETypeLanguage6"
iconst_4
newarray 8
dup
iconst_0
iconst_1
bastore
dup
iconst_1
iconst_2
bastore
dup
iconst_2
iconst_3
bastore
dup
iconst_3
iconst_4
bastore
invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
ldc "application/x-illegal"
invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 5
start local 5 23: aload 1
aload 5
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
24: invokestatic org.junit.Assert.fail:()V
25: goto 30
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
26: astore 6
start local 6 27: ldc "Error evaluating the source. The language MIMETypeLanguage6 does not support MIME type application/x-illegal. Supported MIME types are [application/test-js]."
28: aload 6
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
29: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 6 30: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
31: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 32 1 context Lorg/graalvm/polyglot/Context;
2 32 2 file Ljava/nio/file/Path;
4 32 3 source Lorg/graalvm/polyglot/Source;
13 16 4 e Ljava/lang/IllegalArgumentException;
17 32 4 byteBasedSource Lorg/graalvm/polyglot/Source;
21 22 5 e Ljava/lang/IllegalArgumentException;
23 32 5 illegalSource Lorg/graalvm/polyglot/Source;
27 30 6 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
9 11 12 Class java.lang.IllegalArgumentException
17 19 20 Class java.lang.IllegalArgumentException
23 25 26 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDefaultMimeCharacters2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1
start local 1 1: ldc "MIMETypeLanguage7"
iconst_4
newarray 8
dup
iconst_0
iconst_1
bastore
dup
iconst_1
iconst_2
bastore
dup
iconst_2
iconst_3
bastore
dup
iconst_3
iconst_4
bastore
invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
ldc ""
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
3: invokestatic org.junit.Assert.fail:()V
4: goto 9
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
5: astore 3
start local 3 6: ldc "Error evaluating the source. The language MIMETypeLanguage7 expects character based sources by default but a binary based source was provided. Provide a binary based source instead or specify a MIME type for the source. Available MIME types for binary based sources are [application/test-js]."
7: aload 3
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
8: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 11 1 context Lorg/graalvm/polyglot/Context;
2 11 2 source Lorg/graalvm/polyglot/Source;
6 9 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
2 4 5 Class java.lang.IllegalArgumentException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDefaultMimeBytes2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1
start local 1 1: ldc "MIMETypeLanguage8"
ldc ""
ldc ""
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 2
start local 2 2: aload 1
aload 2
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
3: invokestatic org.junit.Assert.fail:()V
4: goto 9
StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context org.graalvm.polyglot.Source
StackMap stack: java.lang.IllegalArgumentException
5: astore 3
start local 3 6: ldc "Error evaluating the source. The language MIMETypeLanguage8 expects character based sources by default but a binary based source was provided. Provide a character based source instead or specify a MIME type for the source. Available MIME types for character based sources are [text/test-js]."
7: aload 3
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
8: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 11 1 context Lorg/graalvm/polyglot/Context;
2 11 2 source Lorg/graalvm/polyglot/Source;
6 9 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
2 4 5 Class java.lang.IllegalArgumentException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMIMETypeLanguageLegacy1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
ldc "MimeTypeLanguageLegacy1"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Language
astore 2
start local 2 2: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
iconst_1
if_icmpne 3
iconst_1
goto 4
StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 2
invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
ldc "text/test-js"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: ldc "text/test-js"
aload 2
invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 1
invokevirtual org.graalvm.polyglot.Engine.close:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
1 9 1 engine Lorg/graalvm/polyglot/Engine;
2 9 2 language Lorg/graalvm/polyglot/Language;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "MIMETypeTest.java"
NestMembers:
com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage1 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage2 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage3 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage4 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage5 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage6 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage7 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage8 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError1 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError10 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError11 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError12 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError13 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError14 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError2 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError3 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError4 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError5 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError6 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError7 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError8 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError9 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy1 com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy2
InnerClasses:
public abstract Registration = com.oracle.truffle.api.TruffleLanguage$Registration of com.oracle.truffle.api.TruffleLanguage
public MIMETypeLanguage1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage3 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage3 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage4 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage4 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage5 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage5 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage6 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage6 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage7 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage7 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguage8 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage8 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError10 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError10 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError11 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError11 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError12 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError12 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError13 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError13 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError14 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError14 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError3 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError3 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError4 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError4 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError5 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError5 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError6 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError6 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError7 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError7 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError8 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError8 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageError9 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError9 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageLegacy1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public MIMETypeLanguageLegacy2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source