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

Add value-type notice to Optional* classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b120
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: