Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7123424

(coll) CopyOnWriteArrayList/CopyOnWriteArraySet don't throw NPE for removeAll(null)/retainAll(null)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • None

      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.

            mduigou Mike Duigou
            bpassani Brandon Passanisi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: