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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

            Assignee:
            Mike Duigou
            Reporter:
            Brandon Passanisi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: