Commit c5796266 by Mark Wielaard Committed by Michael Koch

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
parent bb07973c
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:
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment