7034155: (ch) NullPointerException in sun.io.ch.IOUtil when OOM is thrown

Rémi Forax forax at univ-mlv.fr
Wed Apr 6 08:41:03 PDT 2011


On 04/06/2011 04:51 PM, Alan Bateman wrote:
> Rémi Forax wrote:
>> :
>> Hi Alan,
>> patch looks fine,
>> just nitpicking, in innerJoin, the second exception message can be 
>> misleading if
>> the socket use a proprietary protocol which is not IPV4 (a non 
>> StandardProtocolFamily).
>> So I propose to change:
>>
>>   "IPv4 socket cannot join IPv6 multicast group"
>>
>> to:
>>
>>   "non IPv6 socket cannot join IPv6 multicast group"
>>
>> cheers,
>> Rémi
>>
> Would you be okay with "Only IPv6 socket can join IPv6 multicast 
> group"? I think this case should be very rare and DatagramChannelImpl 
> doesn't support any other protocol families at this time (the 
> constructors ensure that it's INET or INET6).

Yes.

>
> -Alan.

thanks,
Rémi



More information about the nio-dev mailing list