test/script/trusted/classfilter.js.EXPECTED

changeset 964
8f2ed41abb26
child 1539
684d430470f6
equal deleted inserted replaced
963:e2497b11a021 964:8f2ed41abb26
1 typeof javax.script.ScriptContext evalutes to object
2 typeof javax.script.ScriptEngine evalutes to object
3 typeof java.util.Vector evalutes to function
4 typeof java.util.Map evalutes to function
5 typeof java.util.HashMap evalutes to function
6 var m = new java.util.HashMap(); m.put('foo', 42); m evalutes to {foo=42}
7 java.lang.System.out.println evalutes to [jdk.internal.dynalink.beans.OverloadedDynamicMethod java.io.PrintStream.println]
8 java.lang.System.exit evalutes to [jdk.internal.dynalink.beans.SimpleDynamicMethod void java.lang.System.exit(int)]
9 new javax.script.SimpleBindings throws java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.script.SimpleBindings
10 Java.type('javax.script.ScriptContext') throws java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.script.ScriptContext
11 java.lang.Class.forName('javax.script.ScriptContext') throws javax.script.ScriptException: TypeError: Java reflection not supported when class filter is present in <eval> at line number 1

mercurial