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
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