-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.2.2
-
generic
-
generic
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)
======================================================================
- duplicates
-
JDK-4189641 Passing a null array to Arrays.asList() doesn't return null or throw Exception
-
- Resolved
-