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);