regression: jdk1.7.0_04 java.net.InetAddress.getLocalHost().getHostName() return FQHN
Wolfgang Hoschek
wolfgang at skytide.com
Wed May 9 02:15:24 PDT 2012
[7u6] In jdk1.7.0_04 GA java.net.InetAddress.getLocalHost().getHostName() return the fully qualified host name (e.g. "ip-10-172-17-93.us-west-1.compute.internal") instead of returning the hostname without the domain (e.g. "ip-10-172-17-93"). This is a regression wrt. all prior versions of jdk 1.7 and jdk 1.6. This breaks applications that expect the old behavior.
I have filed a bugzilla issue here: https://bugs.openjdk.java.net/show_bug.cgi?id=100253
Can anyone shade some light on how this came about?
Thanks,
Wolfgang
More information about the jdk7u-dev
mailing list