regression: jdk1.7.0_04 java.net.InetAddress.getLocalHost().getHostName() return FQHN

Alan Bateman Alan.Bateman at oracle.com
Wed May 9 11:01:11 PDT 2012


On 09/05/2012 18:21, Wolfgang Hoschek wrote:
> Hi Alan,
>
> Thanks for letting me know. I strongly encourage you all to revert the behavioral change on Linux and Mac not just in jdk8 but also in jdk7u as well. This critical java regression prevents us from upgrading to jdk1.7.0_04.
>
I'm sure Rob will reply you on this. In the mean-time you can workaround 
this by running with IPv6 disabled (-Djava.net.preferIPv4Stack=true). I 
would also encourage you to examine the code in question as it will 
likely not work on other platforms and configurations where the host 
name has a domain name.

-Alan.



More information about the jdk7u-dev mailing list