-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.3.0
-
sparc
-
solaris_2.6
Name: dfC67450 Date: 09/16/99
java.net.URLStreamHandler.equals(URL u1, URL u2) throws NullPointerException
when either u1, or u2 or both are null. This behaviour is inconsistent
with general contract for equals(Object) method (equals(null) returns false).
Javadoc should clarify the default equals calculation for the case
of one or both parameters are null.
If I'm right hostsEqual(URL,URL) and sameFile(URL,URL) methods shuold
behave in the same manner in case of null parameters.
======================================================================