harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko" <dkishe...@gmail.com>
Subject Re: [classlib][test] Configuration dependent test of InetAddress.getHostName
Date Fri, 20 Oct 2006 12:33:36 GMT
2006/10/20, Alexei Zakharov <alexei.zakharov@gmail.com>:
> Hi Denis,
>
> > InetAddressTest.test_getHostName (see H-1664) failed on WinServer
> > because InetAddress.getByName("127.0.0.1").getHostName() returned
> > "nstdrlew21.ins.intel.com" while "localhost" expected. So this test
>
> According to the test's output you've provided:
>
> > =========== RI ==============
> >    by name (127.0.0.1) -> 127.0.0.1
Yep

> RI returns "127.0.0.1" rather than "localhost". Is it written
> somewhere in the spec that
> InetAddress.getByName("127.0.0.1").getHostName() should return
> "localhost"?
Doesn't. But we aren't discussing this difference.

We discuss that Harmony uses system call which returns
"nstdrlew21.ins.intel.com" on WinServer2003. So should we hardcode
"127.0.0.1" as "localhost"?

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message