-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 5.0
-
Component/s: core-libs
-
b59
-
generic
-
generic
From Doug Lea:
ConcurrentHashMap.keySet().toArray and
ConcurrentHashMap.values().toArray can throw IndexOutOfBoundsException.
If these methods are called while a ConcurrentHashMap
is concurrently growing, they may underallocate array space and
attempt to add more elements than allocated.
ConcurrentHashMap.keySet().toArray and
ConcurrentHashMap.values().toArray can throw IndexOutOfBoundsException.
If these methods are called while a ConcurrentHashMap
is concurrently growing, they may underallocate array space and
attempt to add more elements than allocated.