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

Runtime.Version must be a value-based class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b167
    • Verification:
      Verified

      Backports

        Description

        https://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html

        TODO:

        #1. Provide a similar paragraph as for other value-based classes:

             * <p>This is a <a href="./doc-files/ValueBased.html">value-based</a>
             * class; use of identity-sensitive operations (including reference equality
             * ({@code ==}), identity hash code, or synchronization) on instances of
             * {@code Version} may have unpredictable results and should be avoided.
             * </p>

        #2. Restore lost `final` modifier for class
        #3. Make constructor `final`
        #4. Make `version` method return immutable lists rather than just unmodifiable

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  prappo Pavel Rappo
                  Reporter:
                  prappo Pavel Rappo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: