jdk/test/java/net/MulticastSocket/B6427403.java
changeset 44671 d1d011d4654d
parent 5506 202f599c92aa
equal deleted inserted replaced
44670:77e54dd0675f 44671:d1d011d4654d
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  *
       
    27  * @bug 6427403
    26  * @bug 6427403
    28  *
       
    29  * @summary java.net.MulticastSocket.joinGroup() reports 'socket closed'
    27  * @summary java.net.MulticastSocket.joinGroup() reports 'socket closed'
    30  *
       
    31  */
    28  */
    32 import java.net.*;
    29 import java.net.*;
    33 import java.io.*;
    30 import java.io.*;
    34 import java.util.*;
    31 
    35 public class B6427403 {
    32 public class B6427403 {
    36     public static void main( String[] args ) throws IOException {
    33     public static void main( String[] args ) throws IOException {
    37         InetAddress lh = InetAddress.getLocalHost();
    34         InetAddress lh = InetAddress.getLocalHost();
    38         MulticastSocket ms = new MulticastSocket( new InetSocketAddress(lh, 0) );
    35         MulticastSocket ms = new MulticastSocket( new InetSocketAddress(lh, 0) );
    39         ms.joinGroup( InetAddress.getByName("224.80.80.80") );
    36         ms.joinGroup( InetAddress.getByName("224.80.80.80") );