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

HotSpot must check attribute_length of EnclosingMethod attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 8
    • hotspot
    • b22

    Description

      During class loading, HotSpot must check that an EnclosingMethod attribute is of the proper length. Namely, its attribute_length item must be four.

      Similar checks are already made on other attributes, even those not used directly by the JVM. For example, HotSpot checks that the attribute_length of Synthetic, Signature, and SourceFile is zero, two, and two respectively. As of JDK 8u5, EnclosingMethod is the only attribute with a checkable attribute_length that is not checked by HotSpot.

      Attachments

        Issue Links

          Activity

            People

              hseigel Harold Seigel (Inactive)
              abuckley Alex Buckley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: