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.toURL() and URLStreamHandler.parseURL() fixes


Tom Tromey wrote:
> One question about File.getAbsolutePath().  What if the file name is
> something like "C:foo"?  Does this even make sense?  And if so, won't
> this canonicalize (using the new code) to something like "A:\C:foo",
> which is incorrect?

You are absolutely right - thanks for catching this!


> FYI there is still a POSIX-ism in File.getParent().
> This method needs to be Windows-aware, I think.

Yes, and also in getName( ) - I'll submit a patch separately.

Ranjit.

-- 
Ranjit Mathew        Email: rmathew AT hotmail DOT com
Bangalore,           
INDIA.               Web: http://ranjitmathew.tripod.com/


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