[kaffe] [Bug report] URL.getHost() returning null

Daniel Bonniot Daniel.Bonniot at inria.fr
Thu Jul 1 10:09:58 PDT 2004


Hi,

I'm concerned about the result of getHost() on a java.net.URL, when 
there is no host part in the URL. Unfortunately the Sun's javadoc is not 
clear in this case (while it is in this case for getFile -- empty string 
-- and getRef -- null). However, both Sun and gcj/gij agree on returnin 
an empty string. It would be nice if Kaffe could do the same instead of 
returning null. (Is this a part that is not merged yes with Classpath?).

I attach a testcase.

Cheers,

Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: URLHost.java
Type: text/x-java
Size: 225 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20040701/04ae84a9/attachment-0002.java 


More information about the kaffe mailing list