Kaffe 1.1.2 is not correctly parsing the host out of URLs that include user names and passwords such as ftp://anonymous:[EMAIL PROTECTED]/
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:[EMAIL PROTECTED]/");
     String host = u.getHost();
     System.out.println(host);
  }

}

--

  Elliotte Rusty Harold
  [EMAIL PROTECTED]
  Processing XML with Java (Addison-Wesley, 2002)
  http://www.cafeconleche.org/books/xmljava
  http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to