Eliminate differences between Inet6AddressImpl_getLocalHostName() and Inet4AddressImpl_getLocalHostName()
Alan Bateman
Alan.Bateman at oracle.com
Wed Oct 8 16:56:49 UTC 2014
On 08/10/2014 09:43, Volker Simonis wrote:
> Hi,
>
> I wonder why the implementations of
> Inet6AddressImpl_getLocalHostName() and
> Inet4AddressImpl_getLocalHostName() are different . It seems to me
> that this is simply copy/paste error since the very first 1.4 version.
>
It's best to bring this up on net-dev. There is a long history where the
implementations were very different as getnameinfo/getaddrinfo weren't
available on all platforms when support for IPv6 was added. The OS X
port resulted in some complications. It's definitely worth re-visiting
now, there is a lot of native code in this area that can be consolidated
or re-written in java.
-Alan
More information about the jdk9-dev
mailing list