On 26/03/15 14:32, Daniel Fuchs wrote:
The enumeration of keys returned from the map will be iterated
outside of any synchronized block.
ConcurrentHashMap makes this safe.

I'm happy to report that the test in the webrev [1] fails in
ConcurrentModificationException if HashMap is used instead
of ConcurrentHashMap :-)

best regards

-- daniel

[1]
http://cr.openjdk.java.net/~dfuchs/webrev_7113878/webrev.00

Reply via email to