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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • b162
    • Not verified

        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

              hseigel Harold Seigel (Inactive)
              hseigel Harold Seigel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: