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

JVM should throw NCDFE if ACC_MODULE and CONSTANT_Module/Package are set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b162
    • Verification:
      Not verified

      Backports

        Description

        The JVM should throw a NoClassDefFoundError exception if a class file (version >= 53) contains either CONSTANT_Module or CONSTANT_Package in its constant pool and ACC_Module in its access_flags. Currently, it throws ClassFormatError:

        > java module-info
        Error: LinkageError occurred while loading main class module-info
                java.lang.ClassFormatError: Unknown constant tag 20 in class file module-info

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: