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:
parent
bb07973ce5
commit
c579626684
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue