This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.net.URL
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 31 Dec 2003 12:00:06 +0100
- Subject: FYI: Patch: java.net.URL
Hi list,
I commited the attached patch to fix more stuff in java.net.URL. This fixes
another mauve failure and merges java.net.URL with classpath.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2503
diff -u -b -B -r1.2503 ChangeLog
--- ChangeLog 31 Dec 2003 10:29:03 -0000 1.2503
+++ ChangeLog 31 Dec 2003 10:55:10 -0000
@@ -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:
Index: java/net/URL.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URL.java,v
retrieving revision 1.33
diff -u -b -B -r1.33 URL.java
--- java/net/URL.java 20 Dec 2003 12:28:25 -0000 1.33
+++ java/net/URL.java 31 Dec 2003 10:55:10 -0000
@@ -396,6 +396,8 @@
host = context.host;
port = context.port;
file = context.file;
+ if (file == null || file.length() == 0)
+ file = "/";
authority = context.authority;
}
}
@@ -408,6 +410,8 @@
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.