test/script/trusted/classfilter.js.EXPECTED

Fri, 05 Jun 2015 12:38:53 +0200

author
mhaupt
date
Fri, 05 Jun 2015 12:38:53 +0200
changeset 1398
2f1b9f4daec1
parent 964
8f2ed41abb26
child 1539
684d430470f6
permissions
-rw-r--r--

8080087: Nashorn $ENV.PWD is originally undefined
Summary: On Windows, the PWD environment variable does not exist and cannot be imported in scripting mode, so it is set explicitly.
Reviewed-by: lagergren, sundar

sundar@964 1 typeof javax.script.ScriptContext evalutes to object
sundar@964 2 typeof javax.script.ScriptEngine evalutes to object
sundar@964 3 typeof java.util.Vector evalutes to function
sundar@964 4 typeof java.util.Map evalutes to function
sundar@964 5 typeof java.util.HashMap evalutes to function
sundar@964 6 var m = new java.util.HashMap(); m.put('foo', 42); m evalutes to {foo=42}
sundar@964 7 java.lang.System.out.println evalutes to [jdk.internal.dynalink.beans.OverloadedDynamicMethod java.io.PrintStream.println]
sundar@964 8 java.lang.System.exit evalutes to [jdk.internal.dynalink.beans.SimpleDynamicMethod void java.lang.System.exit(int)]
sundar@964 9 new javax.script.SimpleBindings throws java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.script.SimpleBindings
sundar@964 10 Java.type('javax.script.ScriptContext') throws java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.script.ScriptContext
sundar@964 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