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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: