JDK-8059132 : Nashorn broke JDK9 build, because JDK make of Nasgen has bootstrapping problems
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-09-25
  • Updated: 2015-06-04
  • Resolved: 2014-09-25
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 9
9 b33Fixed
Related Reports
Relates :  
Description
Referring to nashorn classes is apparently OK from inside Nasgen, if they exist in previous versions of the JDK, but referring to a new class, breaks JDK. 

The workaround is to use the type descriptors for now, until someone in the build team can investigate why we have bootstrapping issues.
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/cb930cbfde63 User: lana Date: 2014-10-02 03:09:13 +0000
02-10-2014

URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/cb930cbfde63 User: lagergren Date: 2014-09-25 16:21:32 +0000
25-09-2014

For some reason the JDK 9 build system uses the wrong version of nashorn.jar for the nasgen dependencies. Adding a new nashorn dependency makes jdk9 not build nasgen properly. I'm submitting a workaround and filing this on the infra team
25-09-2014