RFR: JDK-8044306 - java.net.Inet4AddressImpl.getLocalHostName() uses IPv6 rather than IPv4
Alan Bateman
Alan.Bateman at oracle.com
Sun Aug 24 12:11:58 UTC 2014
On 21/08/2014 17:02, Mark Sheppard wrote:
> Hi
> please oblige and review the small change
> http://cr.openjdk.java.net/~msheppar/8044306/webrev/
>
> to address the issue raised in
> https://bugs.openjdk.java.net/browse/JDK-8044306
>
> hints.ai_family is assigned AF_INET rather than AF_UNSPEC
> as the native function
> Java_java_net_Inet4AddressImpl_getLocalHostName
> is part of an IPv4 call flow, such that AF_UNSPEC allows
> an IPv6 data to be retrieved as highlighted in bug report
This looks okay to me, clearly a corner case for this to happen.
-Alan
More information about the net-dev
mailing list