-
Bug
-
Resolution: Fixed
-
P2
-
8u60, 9
-
b69
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8098778 | emb-9 | Sundararajan Athijegannathan | P2 | Resolved | Fixed | team |
JDK-8129211 | 8u65 | Sundararajan Athijegannathan | P2 | Resolved | Fixed | b02 |
JDK-8087194 | 8u60 | Sundararajan Athijegannathan | P2 | Closed | Fixed | b20 |
JDK-8138551 | emb-8u65 | Unassigned | P2 | Resolved | Fixed | b02 |
JDK-8129736 | emb-8u60 | Sundararajan Athijegannathan | P2 | Resolved | Fixed | b20 |
File: test.js
# this test requires -scripting mode
$EXEC.apply(this, ["ls"]);
print($OUT);
-------
The above test fails with the following tip. But, if passes if this changeset is reverted.
$ hg tip
changeset: 1313:a24cb0bf79bc
tag: tip
user: mhaupt
date: Tue Jun 09 09:27:02 2015 +0200
summary: 8080490: add $EXECV command to Nashorn scripting mode
$ jjs -scripting -J-Djava.ext.dirs=dist test.js
Exception in thread "main" java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to [Ljava.lang.Object;
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:361)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:356)
at jdk.nashorn.internal.scripts.Script$Recompilation$1$test.:program(test.js:3)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:640)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:228)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.tools.Shell.apply(Shell.java:397)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:326)
at jdk.nashorn.tools.Shell.run(Shell.java:172)
at jdk.nashorn.tools.Shell.main(Shell.java:136)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
# this test requires -scripting mode
$EXEC.apply(this, ["ls"]);
print($OUT);
-------
The above test fails with the following tip. But, if passes if this changeset is reverted.
$ hg tip
changeset: 1313:a24cb0bf79bc
tag: tip
user: mhaupt
date: Tue Jun 09 09:27:02 2015 +0200
summary: 8080490: add $EXECV command to Nashorn scripting mode
$ jjs -scripting -J-Djava.ext.dirs=dist test.js
Exception in thread "main" java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to [Ljava.lang.Object;
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:361)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:356)
at jdk.nashorn.internal.scripts.Script$Recompilation$1$test.:program(test.js:3)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:640)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:228)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.tools.Shell.apply(Shell.java:397)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:326)
at jdk.nashorn.tools.Shell.run(Shell.java:172)
at jdk.nashorn.tools.Shell.main(Shell.java:136)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
- backported by
-
JDK-8098778 regression: apply on $EXEC fails with ClassCastException
- Resolved
-
JDK-8129211 regression: apply on $EXEC fails with ClassCastException
- Resolved
-
JDK-8129736 regression: apply on $EXEC fails with ClassCastException
- Resolved
-
JDK-8138551 regression: apply on $EXEC fails with ClassCastException
- Resolved
-
JDK-8087194 regression: apply on $EXEC fails with ClassCastException
- Closed
- relates to
-
JDK-8080490 add $EXECV command to Nashorn scripting mode
- Resolved
(1 relates to)