[Patch] java.net.URL
Michael Koch
konqueror@gmx.de
Wed Nov 17 11:59:00 GMT 2004
Hi list,
I just commited the attached patch to fix Classpath bug #10157. I added
a mauve testcase for this too. Thanks to Sven de Morathy for the
suggestion on how to fix this.
Michael
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/URL.java (URL): Handle case when argument is null.
-------------- next part --------------
Index: java/net/URL.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URL.java,v
retrieving revision 1.43
diff -u -r1.43 URL.java
--- java/net/URL.java 17 Oct 2004 08:29:56 -0000 1.43
+++ java/net/URL.java 17 Nov 2004 08:40:02 -0000
@@ -321,7 +321,7 @@
*/
public URL(String spec) throws MalformedURLException
{
- this((URL) null, spec, (URLStreamHandler) null);
+ this((URL) null, spec != null ? spec : "", (URLStreamHandler) null);
}
/**
More information about the Java-patches
mailing list