JDK-2204662 : InetAddress.isReachable hits ShouldNotReachHere with hs20-b04 (win)
  • Type: Backport
  • Backport of: JDK-7010192
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-01-05
  • Updated: 2012-10-03
  • Resolved: 2011-04-05
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 6 JDK 7
6u25 b01Fixed 7Fixed
Description
see parent CR 7010192

Comments
SUGGESTED FIX --- old/src/windows/native/java/net/Inet4AddressImpl.c +++ new/src/windows/native/java/net/Inet4AddressImpl.c @@ -535,8 +535,8 @@ if (timeout >= 0) { optlen = sizeof(connect_rv); - if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, - &optlen) <0) { + if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, + &optlen) <0) { connect_rv = WSAGetLastError(); } --- old/src/windows/native/java/net/Inet6AddressImpl.c +++ new/src/windows/native/java/net/Inet6AddressImpl.c @@ -650,8 +650,8 @@ if (timeout >= 0) { /* has connection been established? */ optlen = sizeof(connect_rv); - if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, - &optlen) <0) { + if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, + &optlen) <0) { connect_rv = WSAGetLastError(); }
07-01-2011

EVALUATION see parent CR 7010192
06-01-2011