Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
None
-
generic
-
linux
Description
CopyOnWriteArrayList/CopyOnWriteArraySet should throw NPE for removeAll(null)/retainAll(null) as noted in the specification in all cases. A NPE is not thrown in the case where the CopyOnWriteArrayList/CopyOnWriteArraySet collection has no elements and then removeAll(null)/retainAll(null) is called.
Attachments
Issue Links
- relates to
-
JDK-8021591 Additional NPE checks
- Closed
-
JDK-4802647 (coll) NullPointerException not thrown by AbstractCollection.retainAll/removeAll
- Closed