This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: java.net.InetAddress
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java-patches at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 17:37:09 -0500 (EST)
- Subject: 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