-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 6
-
Component/s: core-libs
-
b53
-
generic
-
generic
CopyOnWriteArrayList.set(int i, E element)
has an optimization where is does nothing if the element at index i is
already identical to element. This produces the correct result, but
violates the promise that placing an element into a Concurrent collection
has the effects of a volatile write. This could cause a violation of
happens-before assumptions in some implementations.
has an optimization where is does nothing if the element at index i is
already identical to element. This produces the correct result, but
violates the promise that placing an element into a Concurrent collection
has the effects of a volatile write. This could cause a violation of
happens-before assumptions in some implementations.