From 0f43de9f026d5405dd7a38799e499312ef8df890 Mon Sep 17 00:00:00 2001 From: Daniel Fuchs Date: Tue, 30 Jun 2020 18:52:59 +0100 Subject: [PATCH] 8246114: java/net/MulticastSocket/Promiscuous.java fails after 8241072 (multi-homed systems) Fixed the test - an IPv4 group cannot be joined from an interface that has no IPv4 address configured Reviewed-by: alanb, amlu --- test/jdk/java/net/MulticastSocket/Promiscuous.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/jdk/java/net/MulticastSocket/Promiscuous.java b/test/jdk/java/net/MulticastSocket/Promiscuous.java index ed99408c754..5f6126ae425 100644 --- a/test/jdk/java/net/MulticastSocket/Promiscuous.java +++ b/test/jdk/java/net/MulticastSocket/Promiscuous.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -119,7 +119,7 @@ public class Promiscuous { // join groups on all network interfaces NetworkConfiguration.probe() - .multicastInterfaces(false) + .ip4MulticastInterfaces(false) .forEach((nic) -> { try { mc1.joinGroup(toSocketAddress(group1), nic); @@ -155,7 +155,7 @@ public class Promiscuous { // leave groups on all network interfaces NetworkConfiguration.probe() - .multicastInterfaces(false) + .ip4MulticastInterfaces(false) .forEach((nic) -> { try { mc1.leaveGroup(toSocketAddress(group1), nic);