JDK-7161881 : (dc) DatagramChannel.bind(null) fails if IPv4 socket and running with preferIPv6Addresses=true
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-04-16
  • Updated: 2013-02-26
  • Resolved: 2012-06-25
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 7 JDK 8
7u6Fixed 8 b43Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
If a DatagramChannel is connected to an IPv4 socket and we run with java.net.preferIPv6Addresses=true then bind(null) fails to indicate that the protocol family is not supported, see:

http://mail.openjdk.java.net/pipermail/nio-dev/2012-April/001632.html

Comments
EVALUATION Altering the logic around bind(null) will resolve this issue.
12-06-2012