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

Valhalla: Missing ACC_FINAL requirement on value class fields

XMLWordPrintable

    • vm

      The spec currently says: "Each field of a value class must have at least one of its ACC_STATIC or ACC_STRICT_INIT flags set"

      In practice and enforced by HotSpot, value class fields must be either non-static final and strict, or static. (i.e. Value class instance fields must be strict final instead of strict mutable)

            dlsmith Dan Smith
            phubner Paul Hübner
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: