[Patch] java.net.URL
Michael Koch
konqueror@gmx.de
Tue Apr 26 07:50:00 GMT 2005
Hi list,
I just commited the attached patch to merge a fix by Mark Wielaard from
GNU classpath to HEAD.
Michael
2005-04-26 Mark Wielaard <mark@klomp.org>
* java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
to MalformedURLException.
-------------- next part --------------
Index: java/net/URL.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URL.java,v
retrieving revision 1.49
diff -u -r1.49 URL.java
--- java/net/URL.java 20 Apr 2005 05:34:29 -0000 1.49
+++ java/net/URL.java 26 Apr 2005 07:48:51 -0000
@@ -430,7 +430,8 @@
authority = context.authority;
}
else // Protocol NOT specified in spec. and no context available.
- throw new MalformedURLException("Absolute URL required with null context");
+ throw new MalformedURLException("Absolute URL required with null"
+ + " context: " + spec);
protocol = protocol.trim();
More information about the Java-patches
mailing list