United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7161881 (dc) DatagramChannel.bind(null) fails if IPv4 socket and running with preferIPv6Addresses=true
JDK-7161881 : (dc) DatagramChannel.bind(null) fails if IPv4 socket and running with preferIPv6Addresses=true

Details
Type:
Bug
Submit Date:
2012-04-16
Status:
Closed
Updated Date:
2013-02-26
Project Name:
JDK
Resolved Date:
2012-06-25
Component:
core-libs
OS:
generic
Sub-Component:
java.nio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Duplicate:
Duplicate:

Sub Tasks

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.
                                     
2012-06-12



Hardware and Software, Engineered to Work Together