This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]