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

HotSpot rejects CONSTANT_Module_info and CONSTANT_package_info entries in constant pool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 9
    • 9
    • 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."

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

              Created:
              Updated:
              Resolved: