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

Different versions of nashorn use same code cache directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b39
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        This situation default for 8u40 and reproduce for jdk9 with --optimistic-types=false
        For reproduce I run the same command :
        jjs --persistent-code-cache=true --optimistic-types=false array-micro.js
        for jdk9 b36 and b33 and i had error:
        Exception in thread "main" java.lang.NullPointerException
                at jdk.nashorn.internal.runtime.Context.install(Context.java:1237)
                at jdk.nashorn.internal.runtime.Context.compile(Context.java:1180)
                at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1111)
                at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:556)
                at jdk.nashorn.tools.Shell.runScripts(Shell.java:317)
                at jdk.nashorn.tools.Shell.run(Shell.java:169)
                at jdk.nashorn.tools.Shell.main(Shell.java:133)
                at jdk.nashorn.tools.Shell.main(Shell.java:112)

        If i remote nashorn_code_cache this Exception don't reproduce.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hannesw Hannes Wallnoefer
                Reporter:
                slugovoy Sergey Lugovoy (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: