diff options
author | Mark Wielaard <mark@klomp.org> | 2005-04-26 07:49:16 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2005-04-26 07:49:16 +0000 |
commit | c579626684c724b226892b0869316fd1ed7ad350 (patch) | |
tree | deedc47ece25705e9c799331503ffceb80ada865 /libjava/java | |
parent | bb07973ce5483a6eba3b30a3f54d6691a5cba592 (diff) | |
download | gcc-c579626684c724b226892b0869316fd1ed7ad350.zip gcc-c579626684c724b226892b0869316fd1ed7ad350.tar.gz gcc-c579626684c724b226892b0869316fd1ed7ad350.tar.bz2 |
URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException.
2005-04-26 Mark Wielaard <mark@klomp.org>
* java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
to MalformedURLException.
From-SVN: r98767
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/net/URL.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |