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

Improve class reading of invalid or out-of-range ConstantValue attributes

    XMLWordPrintable

Details

    • b151
    • Verified

    Description

      javac should reject ConstantValue attributes where the value disagrees with the type of the field.

      It should also handle constant values outside the allowed range for the field's type (e.g. the constant value of a boolean field is stored as a CONSTANT_Integer, and the integer value could be something other than 0 or 1.)

      See: http://mail.openjdk.java.net/pipermail/compiler-dev/2016-November/010498.html

      Attachments

        Activity

          People

            mcimadamore Maurizio Cimadamore
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: