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

java.util.concurrent.ConcurrentMap.replaceAll - @implNote vs @implSpec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 8
    • core-libs

      Following implementation note for java.util.concurrent.ConcurrentMap.replaceAll talks about correctness properties thus it should be rethought in JDK 9 - may be it should be implSpec rather than implNote.

          /**
           * {@inheritDoc}
           *
           * @implNote This implementation assumes that the ConcurrentMap cannot
           * contain null values and get() returning null unambiguously means the key
           * is absent. Implementations which support null values
           * <strong>must</strong> override this default implementation.
           */
          @Override
          default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function)

            martin Martin Buchholz
            grakov Georgiy Rakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: