JDK-8156820 : Nashorn nightly test failure after fix for 8156738
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-05-12
  • Updated: 2016-05-19
  • Resolved: 2016-05-12
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 b119Fixed
Related Reports
Relates :  
Relates :  
Description
After fix for JDK-8156738, nashorn nightly build fails with the following:

LinkedCallSiteLocationTest.java: 74

    [javac]         return StackWalker.getInstance().walk(s -> s.skip(1).findFirst().get().getLineNumber().getAsInt());
    [javac]                                                                                              

This is because the StackWalker API has been changed as part of 
JDK-8153912 (Reconsider StackFrame::getFileName and StackFrame::getLineNumber). getLineNumber() returns int rather than an OptionalInt