URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException.
authorMark Wielaard <mark@klomp.org>
Tue, 26 Apr 2005 07:49:16 +0000 (07:49 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Tue, 26 Apr 2005 07:49:16 +0000 (07:49 +0000)
2005-04-26  Mark Wielaard  <mark@klomp.org>

* java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
to MalformedURLException.

From-SVN: r98767

libjava/ChangeLog
libjava/java/net/URL.java

index e976ea9..e7e0f15 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-26  Mark Wielaard  <mark@klomp.org>
+
+       * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
+       to MalformedURLException.
+
 2005-04-26  Michael Koch  <konqueror@gmx.de>
 
        * java/security/AccessControlContext.java:
index 7eb68cb..130b604 100644 (file)
@@ -430,7 +430,8 @@ public final class URL implements Serializable
        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();