RFR(XS): 8146482: [TESTBUG] java/net/SocketOption/OptionTest should only use multicast capable interfaces for multicast tests
Chris Hegarty
chris.hegarty at oracle.com
Wed Jan 6 06:58:55 UTC 2016
Hi Volker,
On 5 Jan 2016, at 17:49, Volker Simonis <volker.simonis at gmail.com> wrote:
> Hi,
>
> can somebody please review this small test fix:
>
> http://cr.openjdk.java.net/~simonis/webrevs/2016/8146482/
> https://bugs.openjdk.java.net/browse/JDK-8146482
This change looks good to me.
-Chris.
> The java/net/SocketOption/OptionTest test chooses the first network
> interface returned by NetworkInterface.getNetworkInterfaces() for
> doing some tests on multicast sockets.
>
> But it may be that the chosen interface does not even support
> multicasting. So better iterate over all interfaces and only choose
> one if NetworkInterface.supportsMulticast() returns true.
>
> Thanks,
> Volker
More information about the net-dev
mailing list