From c579626684c724b226892b0869316fd1ed7ad350 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 26 Apr 2005 07:49:16 +0000 Subject: [PATCH] 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 --- libjava/ChangeLog | 5 +++++ libjava/java/net/URL.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e976ea9..e7e0f15 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 7eb68cb..130b604 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(); -- 2.7.4