JDK-8201369 : Inet4AddressImpl_getLocalHostName reverse lookup on Solaris only
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8u144,9,10,11
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-04-10
  • Updated: 2019-01-14
  • Resolved: 2018-04-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 8
11 b11Fixed 8u192Fixed
Related Reports
Relates :  
Relates :  
Description
JDK-8034182 ( and backported through JDK-8169865 ) removed the additional reverse lookup ( to get the host name ) for non-Solaris Unix platforms. There is no specific reason why the same change was not applied to the IPv4 variant of the same method, 
Java_java_net_Inet4AddressImpl_getLocalHostName. 

This issue proposes remove the inconsistency between the IPv4 and IPv6 lookup code by updating the IPv4 code to only perform the additional reverse lookup for Solaris.

This issue has been submitted as a result of the following exchange on net-dev:
http://mail.openjdk.java.net/pipermail/net-dev/2018-April/011322.html