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

Rename ACC_STRICT in the JVM according to strict fields JEP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • repo-valhalla
    • hotspot

      The current draft spec of strict fields has been updated and the new field access flag indicating that a field is strict is now define like this:

      ACC_STRICT_INIT (0x0800)

      This flag repurposes the value of the old method flag ACC_STRICT with a different name and a different meaning.

      Javac code has already be updated to use the new name.
      The JVM however, is still using the same name ACC_STRICT for both the old and the new meaning. This could lead to some confusion, because of the two different purposes of ACC_STRICT, and because of the discrepancy between Hotspot and javac code.

      Once the JEP has been finalized, a new ACC_STRICT_INIT should be declared in classfile_constant.h and used in places where the flag is used to identify strict fields.

            Unassigned Unassigned
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: