7161881: (dc) DatagramChannel.bind(null) fails if IPv4 socket and running with preferIPv6Addresses=true
rob.mckenna at oracle.com
Wed Jun 6 14:23:00 PDT 2012
Done and briefly tested. I'll run it through jprt before integration.
On 06/06/12 22:02, Alan Bateman wrote:
> On 06/06/2012 21:47, Rob McKenna wrote:
>> Hi folks,
>> Small bug with in DatagramChannel where
>> Java.net.preferIPv6Addresses=true is causing bind(null) to use an
>> ipv6 address even though we're connected to an ipv4 socket.
>> Additional context:
> Thanks Rob, this looks fine except for the outer try-catch in the test
> which I think should be removed (meaning no need to catch IOException
> and re-throw as RuntimeException).
More information about the nio-dev