Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b119
-
generic
-
generic
Description
The above test fails on Solaris and it seems to work fine on Linux, here is the stack trace
I have attached the jtr as well for reference:
test public void jdk.nashorn.api.scripting.ScriptEngineTest.scriptObjectAutoConv ersionTest() throws javax.script.ScriptException: failure
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JO4 to jd k.nashorn.api.scripting.JSObject
at sun.invoke.util.ValueConversions.newClassCastException(ValueConversio ns.java:461)
at sun.invoke.util.ValueConversions.castReference(ValueConversions.java: 456)
at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunction Data.java:498)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.jav a:207)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:3 78)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:544)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:526)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:522)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngin e.java:193)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at jdk.nashorn.api.scripting.ScriptEngineTest.scriptObjectAutoConversion Test(ScriptEngineTest.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocat ionHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWork er.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
at org.testng.TestNG.run(TestNG.java:1030)
at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction. java:155)
at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction. java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java: 94)
at java.lang.Thread.run(Thread.java:744)
I have attached the jtr as well for reference:
test public void jdk.nashorn.api.scripting.ScriptEngineTest.scriptObjectAutoConv ersionTest() throws javax.script.ScriptException: failure
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.scripts.JO4 to jd k.nashorn.api.scripting.JSObject
at sun.invoke.util.ValueConversions.newClassCastException(ValueConversio ns.java:461)
at sun.invoke.util.ValueConversions.castReference(ValueConversions.java: 456)
at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunction Data.java:498)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.jav a:207)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:3 78)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:544)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:526)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE ngine.java:522)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngin e.java:193)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at jdk.nashorn.api.scripting.ScriptEngineTest.scriptObjectAutoConversion Test(ScriptEngineTest.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocat ionHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWork er.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
at org.testng.TestNG.run(TestNG.java:1030)
at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction. java:155)
at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction. java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java: 94)
at java.lang.Thread.run(Thread.java:744)