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

Static factories for wrappers should document null arg behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic
    • Verified

      All of the static factories that return "wrapper implementations" in the collections framework throw a NullPointerException if null is passed in. This behavior is desirable, but should be documented. The synchronized and unomidifiable wrappers in java.util.Collections, and java.util.Arrays.asList are affected.

            jjb Josh Bloch (Inactive)
            jjb Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: