RFR: 8259622: TreeMap.computeIfAbsent deviates from spec

Tagir F.Valeev tvaleev at openjdk.java.net
Wed Jan 13 12:50:09 UTC 2021


Handle TreeMap::computeIfAbsent when previous mapping with null value existed (in this case spec requires to overwrite the existing mapping)

-------------

Commit messages:
 - 8259622: TreeMap.computeIfAbsent deviates from spec

Changes: https://git.openjdk.java.net/jdk/pull/2058/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2058&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8259622
  Stats: 24 lines in 2 files changed: 22 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2058.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2058/head:pull/2058

PR: https://git.openjdk.java.net/jdk/pull/2058


More information about the core-libs-dev mailing list