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

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

    XMLWordPrintable

Details

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

    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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: