JDK-7112670 : Inet4AddressImpl should use getaddrinfo/getnameinfo ( modernization/cleanup )
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux_redhat_5.0
  • CPU: generic,x86
  • Submitted: 2011-11-16
  • Updated: 2018-09-13
  • Resolved: 2011-11-29
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 8
8 b15Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
see discussion on net-dev mailing list:
  http://mail.openjdk.java.net/pipermail/net-dev/2011-October/003666.html
  http://mail.openjdk.java.net/pipermail/net-dev/2011-November/003702.html

Essentially modernization/cleanup the Unix Inet4AddressImpl implementation. Replace old API calls gethostbyname_r/gethostbyaddr(_r) with getaddrinfo/getaddrinfo.

Comments
EVALUATION CR 7114558 was filed for some minor review comments that were missed during integration. Here is a link to the JDK8 changeset: Changeset: 81987765cb81 Author: ngmr Date: 2011-11-11 14:40 +0000 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/81987765cb81 7112670: Inet4AddressImpl should use getaddrinfo/getnameinfo Reviewed-by: chegar, alanb, mduigou, ngmr Contributed-by: Charles Lee <littlee at linux.vnet.ibm.com> ! src/solaris/native/java/net/Inet4AddressImpl.c ! src/solaris/native/java/net/Inet6AddressImpl.c ! src/solaris/native/java/net/net_util_md.c ! src/solaris/native/java/net/net_util_md.h
22-11-2011

EVALUATION yes, a fine idea.
16-11-2011