Eliminate differences between Inet6AddressImpl_getLocalHostName() and Inet4AddressImpl_getLocalHostName()

Volker Simonis volker.simonis at gmail.com
Wed Oct 8 17:01:29 UTC 2014


Hi Alan,

I've reposted the question to net-dev as suggested by you.

I therefore close this thread here on jdk9-dev. Should you have any
comments, please reply to the mail on the net-dev list.

Thank you and best regards,
Volker

On Wed, Oct 8, 2014 at 6:56 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 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