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
@ -1,3 +1,8 @@
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user