-
Sub-task
-
Resolution: Delivered
-
P3
-
17
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8261541 | 16 | Clifford Wayne | P3 | Closed | Delivered | |
JDK-8261540 | 15 | Clifford Wayne | P3 | Closed | Delivered |
A bug has been fixed in enhancement JDK-8176894 that inadvertently introduced erroneous behavior in the `TreeMap.computeIfAbsent` method. The erroneous behavior was that, if the map contained an existing mapping whose value was null, the `computeIfAbsent` method would immediately return null. Other `TreeMap` methods modified by the enhancement were unaffected. To conform with the specification, `computeIfAbsent` now calls the mapping function and updates the map with the function's result.
- backported by
-
JDK-8261540 Release Note: TreeMap.computeIfAbsent Mishandles Existing Entries Whose Values Are null
- Closed
-
JDK-8261541 Release Note: TreeMap.computeIfAbsent Mishandles Existing Entries Whose Values Are null
- Closed