Duplicate symbol when defining function in finally block

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b93
    • Verified

      Test case attached.


      Exception in thread "main" java.lang.ClassFormatError: Duplicate method name&signature in class file jdk/nashorn/internal/scripts/Script$simple
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:751)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at jdk.nashorn.internal.runtime.ScriptLoader.installClass(ScriptLoader.java:64)
      at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller.install(Context.java:90)
      at jdk.nashorn.internal.codegen.Compiler.install(Compiler.java:400)
      at jdk.nashorn.internal.codegen.Compiler.install(Compiler.java:439)
      at jdk.nashorn.internal.runtime.Context.compile(Context.java:764)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:720)
      at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:341)
      at jdk.nashorn.tools.Shell.runScripts(Shell.java:308)
      at jdk.nashorn.tools.Shell.run(Shell.java:178)
      at jdk.nashorn.tools.Shell.main(Shell.java:142)
      at jdk.nashorn.tools.Shell.main(Shell.java:121)

            Assignee:
            Marcus Lagergren
            Reporter:
            Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: