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

Add value-type notice to Optional* classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • core-libs
    • b120
    • generic
    • generic
    • Verified

    Backports

      Description

        Per EG discussion a notice is added to the Optional* classes to provide warning against using identity semantics on these objects

        Additionally as pointed out by bitterfox, there is an incorrect method name in OptionalInt OptionalLong and OptionalDouble. The class documentation for each refers to "get()" whereas the actual name is getXXX where XXX is the box type name.

        Attachments

          Issue Links

            Activity

              People

                mduigou Mike Duigou
                mduigou Mike Duigou
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: