[kaffe] Bug Report: Incorrect parsing of host
    Dalibor Topic 
    robilad at kaffe.org
       
    Thu Oct 30 13:33:02 PST 2003
    
    
  
Hi Elliotte,
Elliotte Rusty Harold wrote:
> Kaffe 1.1.2 is not correctly parsing the host out of URLs that include 
> user names and passwords such as 
> ftp://anonymous:anonymous@wuarchive.wustl.edu/
> It reports the username as the host.
> 
> Code follows
> 
> import java.io.*;
> import java.net.*;
> 
> public class Test {
> 
>   public static void main(String[] args)
>     throws Exception {
>      URL u = new URL("ftp://anonymous:anonymous@wuarchive.wustl.edu/");
>      String host = u.getHost();
>      System.out.println(host);
>   }
> 
> }
> 
Thanks for the bug report. Guilhem fixed it in CVS now.
cheers,
dalibor topic
    
    
More information about the kaffe
mailing list