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)

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

              Created:
              Updated:
              Resolved: