-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b87
-
generic
-
generic
-
Verified
AbstractCollection.toArray assumes that size() is constant during
method execution. That makes the implementation unsafe for concurrent collections.
All concurrent collections provided by the JDK must override toArray, and
any third-party collections must do so as well, but are likely to not notice,
causing rare unpredictable runtime failures due to the inherent race condition.
method execution. That makes the implementation unsafe for concurrent collections.
All concurrent collections provided by the JDK must override toArray, and
any third-party collections must do so as well, but are likely to not notice,
causing rare unpredictable runtime failures due to the inherent race condition.
- relates to
-
JDK-6307475 (coll) Optimize AbstractCollection.toArray()
-
- Closed
-
-
JDK-6415641 (coll) Getting NavigableMap/NavigableSet right
-
- Closed
-