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

Runtime.Version must be a value-based class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • core-libs
    • b167
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: