This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
RE: Patch: File(URI) constructor.
- From: "Jeroen Frijters" <jeroen at sumatra dot nl>
- To: "Bryce McKinlay" <mckinlay at redhat dot com>
- Cc: "Anthony Green" <green at redhat dot com>,<commit-classpath at gnu dot org>,<java-patches at gcc dot gnu dot org>
- Date: Tue, 6 Jul 2004 20:42:59 +0200
- Subject: RE: Patch: File(URI) constructor.
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