diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e976ea91adf..e7e0f15fc88 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-26 Mark Wielaard + + * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec + to MalformedURLException. + 2005-04-26 Michael Koch * java/security/AccessControlContext.java: diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index 7eb68cb3f07..130b604eba9 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -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();