--- 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());