2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
* java/net/URL.java (URL): Delete whitespaces in the protocol string.
2004-09-24 Jeroen Frijters <jeroen@frijters.net>
* java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
Don't set authority if host isn't specified.
From-SVN: r88015
+2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
+
+ * java/net/URL.java (URL): Delete whitespaces in the protocol string.
+
+2004-09-24 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
+ Don't set authority if host isn't specified.
+
2004-09-24 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
this.host = host;
this.port = port;
this.authority = (host != null) ? host : "";
- if (port >= 0)
+ if (port >= 0 && host != null)
this.authority += ":" + port;
int hashAt = file.indexOf('#');
throw new MalformedURLException("Absolute URL required with null context");
+ protocol = protocol.trim();
+
if (ph != null)
{
SecurityManager s = System.getSecurityManager();