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

--verify-code option results in AnalyzerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None

      With a simple "hello world" script, --verify-code results in crash:


      jdk.internal.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 3: java.lang.ClassNotFoundException: jdk/nashorn/internal/runtime/PropertyMap
      at jdk.internal.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:326)
      at jdk.internal.org.objectweb.asm.util.CheckClassAdapter.verify(CheckClassAdapter.java:262)
      at jdk.nashorn.internal.runtime.Context.verify(Context.java:651)
      at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller.verify(Context.java:96)
      at jdk.nashorn.internal.codegen.CompilationPhase$8.transform(CompilationPhase.java:414)
      at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:509)
      at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:358)
      at jdk.nashorn.internal.runtime.Context.compile(Context.java:828)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:785)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:339)
      at jdk.nashorn.tools.Shell.runScripts(Shell.java:309)
      at jdk.nashorn.tools.Shell.run(Shell.java:179)
      at jdk.nashorn.tools.Shell.main(Shell.java:143)
      at jdk.nashorn.tools.Shell.main(Shell.java:122)
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: jdk/nashorn/internal/runtime/PropertyMap
      at jdk.internal.org.objectweb.asm.tree.analysis.SimpleVerifier.getClass(SimpleVerifier.java:346)
      at jdk.internal.org.objectweb.asm.tree.analysis.SimpleVerifier.isAssignableFrom(SimpleVerifier.java:335)
      at jdk.internal.org.objectweb.asm.tree.analysis.SimpleVerifier.isSubTypeOf(SimpleVerifier.java:237)
      at jdk.internal.org.objectweb.asm.tree.analysis.BasicVerifier.ternaryOperation(BasicVerifier.java:396)
      at jdk.internal.org.objectweb.asm.tree.analysis.BasicVerifier.ternaryOperation(BasicVerifier.java:76)
      at jdk.internal.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:340)
      at jdk.internal.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:228)
      ... 13 more
      $setMap(ILjdk/nashorn/internal/runtime/PropertyMap;)V
      00000 I PropertyMap : : GETSTATIC jdk/nashorn/internal/scripts/Script$t.constants : [Ljava/lang/Object;
      00001 I PropertyMap : Object : ILOAD 0
      00002 I PropertyMap : Object I : ALOAD 1
      00003 I PropertyMap : Object I PropertyMap : AASTORE
      00004 ? : RETURN

      hello

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: