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

RFE: util.Collections.unmodifiable*(...) should check for nullity in inbound col

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • 1.2.2
    • core-libs

    Description



      Name: rlT66838 Date: 09/27/99


      The Collections.unmodifiable*(...) set of methods should
      check for nullity on an inbound collection. As it stands now,
      such nullity isn't found until much later, when that "new"
      collection is actually manipulated. Much harder to track down.

      Now, yes, I can check for nullity before I call that. But
      I've come to expect that when I pass null into something that
      can't handle it, that it throws an exception; and clearly,
      this class can't handle it. (dies internally when I try to
      invoke any methods, after passing in null).
      (Review ID: 95801)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: