URL.java (getPath): New JDK 1.3 method.
authorPer Bothner <per@bothner.com>
Sat, 23 Feb 2002 00:15:49 +0000 (16:15 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sat, 23 Feb 2002 00:15:49 +0000 (16:15 -0800)
commit9abe2e29b4cc5e50af73f2371acbb7a6fcf234e3
tree81ce5a31be0e237c815380e8e7563a5b5edde010
parent43710f9f8933a7925b6fe656513a75c8fe6016d1
URL.java (getPath): New JDK 1.3 method.

* java/net/URL.java (getPath):  New JDK 1.3 method.

* java/net/URLStreamHandler.java (parseURL):
It is wrong to prepend '/' to the file part of a relative url.

* java/net/URLStreamHandler.java (parseURL):
Minor optizations - append '/' rather than "/".

* java/net/URLStreamHandler.java (parseURL):
Don't canonicalize "xx/.." or "./" URLs - JDK doesn't.
We probably should canonicalize for a context-relative url, though.
* java/net/URL.java (sameFile):  Delegate to URLStreamHandler.
* java/net/URLStreamHandler.java (canonicalizeFilename):  New helper.
(sameFile):  New method.  Uses canonicalizeFilename.

From-SVN: r49980
libjava/ChangeLog
libjava/java/net/URL.java
libjava/java/net/URLStreamHandler.java