Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
None
-
b91
-
Verified
Description
Testcase attached.
Exception in thread "main" java.lang.ClassCastException: jdk.nashorn.internal.objects.NativeRegExpExecResult cannot be cast to jdk.nashorn.internal.objects.NativeArray
at jdk.nashorn.internal.objects.NativeArray.slice(NativeArray.java:783)
at jdk.nashorn.internal.scripts.Script$regex.runScript(regex.js:4)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:510)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:202)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
at jdk.nashorn.tools.Shell.apply(Shell.java:385)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:314)
at jdk.nashorn.tools.Shell.run(Shell.java:177)
at jdk.nashorn.tools.Shell.main(Shell.java:142)
at jdk.nashorn.tools.Shell.main(Shell.java:121)
Exception in thread "main" java.lang.ClassCastException: jdk.nashorn.internal.objects.NativeRegExpExecResult cannot be cast to jdk.nashorn.internal.objects.NativeArray
at jdk.nashorn.internal.objects.NativeArray.slice(NativeArray.java:783)
at jdk.nashorn.internal.scripts.Script$regex.runScript(regex.js:4)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:510)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:202)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
at jdk.nashorn.tools.Shell.apply(Shell.java:385)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:314)
at jdk.nashorn.tools.Shell.run(Shell.java:177)
at jdk.nashorn.tools.Shell.main(Shell.java:142)
at jdk.nashorn.tools.Shell.main(Shell.java:121)