-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
x86
-
linux
Name: kaC94536 Date: 06/01/2000
The following test shows that method MulticastSocket.joinGroup throws
unexpectable exception.
---------------------------------------------------------------------
import java.io.*;
import java.net.*;
public class JoinGroup {
public static void main(String args[]) throws Exception {
MulticastSocket soc = null;
InetAddress sin = null;
soc = new MulticastSocket();
sin = InetAddress.getByName("224.80.80.80");
soc.joinGroup(sin);
soc.leaveGroup(sin);
}
}
----------------------------- output ---------------------------------
linux-8$ java -version
java version "1.3.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)
linux-8$ java JoinGroup
Exception in thread "main" java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:229)
at JoinGroup.main(JoinGroup.java:24)
---------------------------------------------------------------------
The following tests from regression testsuite fails due to this bug:
test/java/net/MulticastSocket/JoinGroup.java
test/java/net/MulticastSocket/Leave.java
======================================================================
======================================================================
- duplicates
-
JDK-4344796 Linux: MulticastTest from testbase_js fails on notebook
-
- Closed
-