Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039049

ContinuationHandler generation crashes with null local variables in rest of function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8u40
    • core-libs

      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

            attila Attila Szegedi
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: