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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: