HotSpot rejects CONSTANT_Module_info and CONSTANT_package_info entries in constant pool

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot

      The class parser in HotSpot needs to support these the constant pool items defined for class files >= 53.0.

      From Alex "for a >=53.0 ClassFile:

      - If ACC_MODULE is set, throw NCDFE if attempting to define the class.

      - If ACC_MODULE is not set, parse as an ordinary class. The Module attribute must be ignored, since it's in the same "not critical to the JVM" bucket as the Runtime*Annotations attributes. Constant pool tags 19 (CONSTANT_Module) and 20 (CONSTANT_Package) are legal, so a JVM implementation must not reject them. Hopefully, HotSpot will at least validate that CONSTANT_Module_info and CONSTANT_Package_info entries point to CONSTANT_Utf8_info entries."

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

              Created:
              Updated:
              Resolved: