Relates :
|
|
Relates :
|
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.