diff options
author | Guilhem Lavaux <guilhem@kaffe.org> | 2003-12-31 10:55:40 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-12-31 10:55:40 +0000 |
commit | d415865929d00608b5eeedd824ee679e673f18f3 (patch) | |
tree | b0982be37b69def5eda6ed5284885d0de3beea57 | |
parent | ad12652102049de3b337a2e17718e6ca9810a159 (diff) | |
download | gcc-d415865929d00608b5eeedd824ee679e673f18f3.zip gcc-d415865929d00608b5eeedd824ee679e673f18f3.tar.gz gcc-d415865929d00608b5eeedd824ee679e673f18f3.tar.bz2 |
2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>
* java/net/URL.java
(URL): Change context path to "/" if it is empty.
From-SVN: r75264
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/net/URL.java | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0a39776..8bb9115 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-12-31 Guilhem Lavaux <guilhem@kaffe.org> + + * java/net/URL.java + (URL): Change context path to "/" if it is empty. + 2003-12-31 Michael Koch <konqueror@gmx.de> * testsuite/libjava.mauve/xfails: Removed tests that pass now: diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index 79771d9..85f0efb 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -396,6 +396,8 @@ public final class URL implements Serializable host = context.host; port = context.port; file = context.file; + if (file == null || file.length() == 0) + file = "/"; authority = context.authority; } } @@ -408,6 +410,8 @@ public final class URL implements Serializable host = context.host; port = context.port; file = context.file; + if (file == null || file.length() == 0) + file = "/"; authority = context.authority; } else // Protocol NOT specified in spec. and no context available. |