JDK-8039049 : ContinuationHandler generation crashes with null local variables in rest of function
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-04-02
  • Updated: 2014-06-04
  • Resolved: 2014-06-04
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
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
To reproduce:

sync nashorn-staging to latest.

remove the check 

        if (compiler.getCompilationEnvironment().isCompileRestOf()) {
            return false;
        }

from undefinedCheck in CodeGenerator.java

run

function(x) {
   return undefined === x;
}
f(17);

Kaboom! Nullpointer exception

Comments
Code exists only in Nashorn staging repo at the moment
14-04-2014