Patch: File(URI) constructor.
Jeroen Frijters
jeroen@sumatra.nl
Tue Jul 6 18:43:00 GMT 2004
Bryce McKinlay wrote:
> Jeroen Frijters wrote:
> >Bryce McKinlay wrote:
> >>Should this use equalsIgnoreCase() ?
> >
> >Isn't the scheme always in lowercase?
> >
> Basied on the result of my quick test case, it will be in
> whatever case was used when constructing the URI instance.
> Presumably, URI schemes are also case insensitive.
Apparently. This surprises me since URL protocols are always converted
to lowercase.
> Our URI implementation appears to be buggy,
> however.
Not surprisingly, because the implementation of URI.equals() is "return
false;". Quite a few other methods are not implemented as well. :-(
Regards,
Jeroen
More information about the Java-patches
mailing list