This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: java.net.InetAddress


On Fri, 28 Nov 2003, Michael Koch wrote:
> Yes I have it compared to SUNs JDK 1.4.2.

On what OS?  I'm looking at 1.4.1 on RHL 9.

> Before the patch libgcj blocked for some seconds and then returned
> "0.0.0.0". With this patch applied it returns imidiately.

How did you test "offline" behavior?  I tried two things: removing the
network card from my laptop, and configuring for a non-existent nameserver
"10.0.0.1".  In both cases my test program behaved the same whether
compiled with gcj or running under JDK 1.4.1.

This is the program I tested with:

import java.net.*;

public class IA {
  public static void main(String[] args) throws Exception {
      System.out.println(InetAddress.getByName("0.0.0.0").getHostName());
  }
}

> Now libgcj behaves the same as SUNs JDK 1.4.2.

I'm questioning though if you've found the root of the implementation
difference.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]