JDK-8072626 : Test for JDK-8068872 fails in tip
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-02-05
  • Updated: 2015-09-29
  • Resolved: 2015-02-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b50Fixed
Description
Changeset 1178:2b9af466a49d ()fix for JDK-8062141) causes the test for JDK-8068872 to fail with an AssertionError:

$ java -ea -jar dist/nashorn.jar test/script/basic/JDK-8068872.js
Exception in thread "main" java.lang.AssertionError
	at jdk.nashorn.internal.runtime.arrays.DeletedArrayFilter.delete(DeletedArrayFilter.java:150)
	at jdk.nashorn.internal.runtime.arrays.DeletedRangeArrayFilter.delete(DeletedRangeArrayFilter.java:231)
	at jdk.nashorn.internal.parser.JSONParser.addArrayElement(JSONParser.java:237)
	at jdk.nashorn.internal.parser.JSONParser.parseObject(JSONParser.java:205)
	at jdk.nashorn.internal.parser.JSONParser.parseLiteral(JSONParser.java:160)
	at jdk.nashorn.internal.parser.JSONParser.parse(JSONParser.java:143)
	at jdk.nashorn.internal.runtime.JSONFunctions.parse(JSONFunctions.java:79)
	at jdk.nashorn.internal.objects.NativeJSON.parse(NativeJSON.java:105)