Please find here a change that makes the test IPMulticastIF.java more resilient to platform-dependent behavior.
The test assumed that you could set any outbound network interface on a bound datagram channel. This is in fact system dependent and could fail if the outbound interface and the local IP Address of the bound socket do not match. The test is modified to only select the interfaces to which the local address is bound. It also verifies that any interface can be set if the socket is bound to the wildcard (any local address). ------------- Commit messages: - 8334600 Changes: https://git.openjdk.org/jdk/pull/19881/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19881&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8334600 Stats: 25 lines in 1 file changed: 16 ins; 0 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/19881.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19881/head:pull/19881 PR: https://git.openjdk.org/jdk/pull/19881