Integrated: 8304286: java/net/SocketOption/OptionsTest.java failing after JDK-8302659

Daniel Jeliński djelinski at openjdk.org
Wed Mar 22 08:46:52 UTC 2023


On Thu, 16 Mar 2023 14:19:14 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> Please review this change that fixes and reenables OptionsTest on Windows.
> 
> The test is checking that the values retrieved from getOption match the values set by an earlier call to setOption. The `IP_MULTICAST_IF` option was tested with the first network interface for which `supportsMulticast` returned true. JDK-8302659 changed the network interface iteration order and the test started failing.
> 
> The proposed change is to verify if the interface is actually usable for multicasting before using it in set/get test. Test passed on all platforms.

This pull request has now been integrated.

Changeset: eda00651
Author:    Daniel Jeliński <djelinski at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/eda006510792de75d898cd66eeb86a00ad2fd45a
Stats:     16 lines in 3 files changed: 2 ins; 8 del; 6 mod

8304286: java/net/SocketOption/OptionsTest.java failing after JDK-8302659

Reviewed-by: dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/13061


More information about the net-dev mailing list