]> git.ipfire.org Git - thirdparty/gcc.git/commit
File (getAbsolutePath): Prefix drive specifier on Windows for paths starting with...
authorRanjit Mathew <rmathew@hotmail.com>
Sat, 1 Mar 2003 23:38:13 +0000 (23:38 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 1 Mar 2003 23:38:13 +0000 (23:38 +0000)
commit5bedfc9356014b29aa696f63421d3a3b000fc57c
tree4cd6d3bffb8812360e139400a1ec89459ba0a0d9
parent73058ef68c40c5c9f129d79e3eccc19543412d55
File (getAbsolutePath): Prefix drive specifier on Windows for paths starting with a '\'.

2003-03-01  Ranjit Mathew  <rmathew@hotmail.com>

* java/io/File (getAbsolutePath): Prefix drive specifier on
Windows for paths starting with a '\'.
(toURL): Make URL more consistent with what Sun's JDK returns.

* java/io/natFileWin32.cc (java::io::File::isAbsolute): Return
true only if the path is a UNC network path or it starts with a
drive specifier.

* java/net/URLStreamHandler.java (parseURL): Correct minor typo.
Be prepared to handle either '/' or '\\' in the file path for
Windows if using the "file" protocol.
Canonicalise the file path if using a relative path in the given
context and the "file" protocol.

From-SVN: r63635
libjava/ChangeLog
libjava/java/io/File.java
libjava/java/io/natFileWin32.cc
libjava/java/net/URLStreamHandler.java