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

ClassFormatError: Duplicate entry in InnerClasses attribute in class file loada

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: External
    • Affects Version/s: 8u311, 17, 18
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Linux Mint 20 / OpenJDK 17.0.1

      A DESCRIPTION OF THE PROBLEM :
      Error occurs when starting program. I claim the .class file is valid, can't see any duplicate attributes when checking with BCEL. But maybe error is on my side. Class file was made with ECJ.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Simply run the jar file at https://botcompany.de/files/1400531/class-anomaly.jar

      (Or inspect the file loadableUtils/utils.class)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JAR should run
      ACTUAL -
      ClassFormatError: Duplicate entry in InnerClasses attribute in class file loada

      ---------- BEGIN SOURCE ----------
      Hmm I can provide source code, but I think class file should be enough?
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Compile source with javac instead of ecj. But I'm still curious about this problem. Thanks

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: