changeset 55959:6ca3526c4e25

8226683: Remove review suggestion from fix to 8219804 Reviewed-by: chegar
author michaelm
date Mon, 24 Jun 2019 15:19:11 +0100
parents 73250862f818
children aee0d296c0ef
files test/jdk/java/net/MulticastSocket/Promiscuous.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/net/MulticastSocket/Promiscuous.java	Mon Jun 24 15:10:44 2019 +0100
+++ b/test/jdk/java/net/MulticastSocket/Promiscuous.java	Mon Jun 24 15:19:11 2019 +0100
@@ -93,12 +93,9 @@
     static void test(InetAddress group1, InetAddress group2)
         throws IOException
     {
-        InetSocketAddress ad1 = new InetSocketAddress(group1, 0);
-        try (MulticastSocket mc1 = new MulticastSocket(ad1);
-             MulticastSocket mc2 = new MulticastSocket(
-                 new InetSocketAddress(group2, mc1.getLocalPort()));
+        try (MulticastSocket mc1 = new MulticastSocket();
+             MulticastSocket mc2 = new MulticastSocket(mc1.getLocalPort());
              DatagramSocket ds = new DatagramSocket()) {
-
             final int port = mc1.getLocalPort();
             out.printf("Using port: %d\n", port);