-
Bug
-
Resolution: Fixed
-
P2
-
8u40
-
b17
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064087 | 8u45 | Attila Szegedi | P2 | Resolved | Fixed | b01 |
JDK-8055555 | 8u40 | Attila Szegedi | P2 | Closed | Fixed | b04 |
JDK-8070324 | emb-8u47 | Attila Szegedi | P2 | Resolved | Fixed | team |
The following test case (from buffer.js in avatar.js) throws an NPE
Exception in thread "main" java.lang.NullPointerException
at sun.invoke.util.ValueConversions.unboxInteger(ValueConversions.java:77)
at jdk.nashorn.internal.scripts.Script$Recompilation$4$restOf$buffer.:program(buffer.js:6)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:539)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:218)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:376)
at jdk.nashorn.tools.Shell.apply(Shell.java:386)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:315)
at jdk.nashorn.tools.Shell.run(Shell.java:169)
at jdk.nashorn.tools.Shell.main(Shell.java:133)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
function write() {
charsWrittenReturn[0] = 42;
}
var charsWrittenReturn = java.lang.reflect.Array.newInstance(java.lang.Integer.class, 1);
print(charsWrittenReturn[0]);
Exception in thread "main" java.lang.NullPointerException
at sun.invoke.util.ValueConversions.unboxInteger(ValueConversions.java:77)
at jdk.nashorn.internal.scripts.Script$Recompilation$4$restOf$buffer.:program(buffer.js:6)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:539)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:218)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:376)
at jdk.nashorn.tools.Shell.apply(Shell.java:386)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:315)
at jdk.nashorn.tools.Shell.run(Shell.java:169)
at jdk.nashorn.tools.Shell.main(Shell.java:133)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
function write() {
charsWrittenReturn[0] = 42;
}
var charsWrittenReturn = java.lang.reflect.Array.newInstance(java.lang.Integer.class, 1);
print(charsWrittenReturn[0]);
- backported by
-
JDK-8064087 NPE in unboxInteger
-
- Resolved
-
-
JDK-8070324 NPE in unboxInteger
-
- Resolved
-
-
JDK-8055555 NPE in unboxInteger
-
- Closed
-
- duplicates
-
JDK-8037486 "Java.to" tries to unbox integers in object only function in the optimistic world
-
- Closed
-