From: Mark Wielaard Date: Tue, 26 Apr 2005 07:49:16 +0000 (+0000) Subject: URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c579626684c724b226892b0869316fd1ed7ad350;p=gcc.git URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException. 2005-04-26 Mark Wielaard * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException. From-SVN: r98767 --- 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();