Atomic*.compareAndExchange Javadoc unclear

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: None
    • Component/s: 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"

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

              Created:
              Updated:
              Resolved: