7034155: (ch) NullPointerException in sun.io.ch.IOUtil when OOM is thrown
Alan Bateman
Alan.Bateman at oracle.com
Wed Apr 6 07:51:42 PDT 2011
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).
-Alan.
More information about the nio-dev
mailing list