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

Duplicate symbol when defining function in finally block

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None
    • b93
    • Verified

    Description

      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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: