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 /libjava/java/net | |
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
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/URL.java | 4 |
1 files changed, 4 insertions, 0 deletions
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. |