hg: jdk9/sandbox/jdk: 8071667: HashMap.computeIfAbsent() adds entry that HashMap.get() does not find.
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Thu Apr 2 19:35:56 UTC 2015
Changeset: 0c3aa853064e
Author: bchristi
Date: 2015-04-02 12:33 -0700
URL: http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/0c3aa853064e
8071667: HashMap.computeIfAbsent() adds entry that HashMap.get() does not find.
Summary: Throw ConcurrentModificationException from computeIfAbsent() & friends
Reviewed-by: chegar, psandoz
! src/java.base/share/classes/java/util/HashMap.java
! src/java.base/share/classes/java/util/Hashtable.java
! src/java.base/share/classes/java/util/Map.java
+ test/java/util/Map/FunctionalCMEs.java
More information about the jdk9-sandbox-changes
mailing list