From d415865929d00608b5eeedd824ee679e673f18f3 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Wed, 31 Dec 2003 10:55:40 +0000 Subject: 2003-12-31 Guilhem Lavaux * java/net/URL.java (URL): Change context path to "/" if it is empty. From-SVN: r75264 --- libjava/java/net/URL.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libjava/java') 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. -- cgit v1.1