nashorn/test/script/trusted/NASHORN-653.js
changeset 17758 2b056941e4dd
parent 16221 38ac51eba133
child 24778 2ff5d7041566
--- a/nashorn/test/script/trusted/NASHORN-653.js	Mon May 20 23:04:01 2013 +0530
+++ b/nashorn/test/script/trusted/NASHORN-653.js	Mon May 20 21:25:14 2013 +0200
@@ -85,8 +85,7 @@
         try {
             // set new standard err
             System.setErr(newErr);
-            var strType = Java.type("java.lang.String");
-            var engine = fac.getScriptEngine(Java.toJavaArray(opts, strType));
+            var engine = fac.getScriptEngine(Java.to(opts, "java.lang.String[]"));
             engine.eval(code);
             newErr.flush();
             return new java.lang.String(baos.toByteArray());