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
This commit is contained in:
Mark Wielaard 2005-04-26 07:49:16 +00:00 committed by Michael Koch
parent bb07973ce5
commit c579626684
2 changed files with 7 additions and 1 deletions

View file

@ -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();