Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254047 [JEP 390] Revise "value-based class" & apply to wrappers
  3. JDK-8257776

[valhalla:jep390] Add disclaimer about future changes to value-based classes

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:
      None

      Description

      Per CSR feedback:

      - Add this to ValueBased.html: "Identity-related behavior of value-based classes may change in a future release."

      - Modify the boilerplate in linking value-based classes to say:

       * <p>This is a <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>
       * class; programmers should treat instances that are
       * {@linkplain #equals(Object) equal} as interchangeable and should not
       * use instances for synchronization, or unpredictable behavior may
       * occur. For example, in a future release, synchronization may fail.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dlsmith Dan Smith
              Reporter:
              dlsmith Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: