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

Atomic*.compareAndExchange Javadoc unclear

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 21
    • None
    • core-libs
    • None

      Atomic*.compareAndExchange Javadoc is omitting what the contract of the method return value is in the case of a failed comparison.

      Example:

      "Returns:
          the witness value, which will be the same as the expected value if successful"

            vklang Viktor Klang
            vklang Viktor Klang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: