Patch: File.toURL() and URLStreamHandler.parseURL() fixes

Ranjit Mathew rmathew@hotmail.com
Sun Mar 2 18:50:00 GMT 2003


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/



More information about the Java-patches mailing list