-
Bug
-
Resolution: Fixed
-
P1
-
10
-
b31
-
Verified
----------System.out:(4/26)----------
Test4
global run method
----------System.err:(15/1045)----------
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JD4 to jdk.nashorn.internal.objects.Global
at java.base/java.lang.Class.cast(Class.java:3569)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.getInterfaceInner(NashornScriptEngine.java:279)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.getInterface(NashornScriptEngine.java:211)
at Test4.main(Test4.java:53)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.ClassCastException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JD4 to jdk.nashorn.internal.objects.Global
Test4
global run method
----------System.err:(15/1045)----------
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JD4 to jdk.nashorn.internal.objects.Global
at java.base/java.lang.Class.cast(Class.java:3569)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.getInterfaceInner(NashornScriptEngine.java:279)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.getInterface(NashornScriptEngine.java:211)
at Test4.main(Test4.java:53)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.ClassCastException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JD4 to jdk.nashorn.internal.objects.Global
- duplicates
-
JDK-8188835 AllocateUninitializedArray fails with "IllegalStateException: Wrong class: expected = class [I, but got class [C "
- Closed
- relates to
-
JDK-8189856 Revisit type propagation with nodes that don't depend on their direct inputs
- Open
-
JDK-8186777 Make Klass::_java_mirror an OopHandle
- Resolved