diff --git a/jdk/src/java.base/share/classes/java/net/MulticastSocket.java b/jdk/src/java.base/share/classes/java/net/MulticastSocket.java index 9c9e4b8f53a..7d8d2090c91 100644 --- a/jdk/src/java.base/share/classes/java/net/MulticastSocket.java +++ b/jdk/src/java.base/share/classes/java/net/MulticastSocket.java @@ -300,8 +300,9 @@ class MulticastSocket extends DatagramSocket { * * @param mcastaddr is the multicast address to join * - * @exception IOException if there is an error joining - * or when the address is not a multicast address. + * @exception IOException if there is an error joining, or when the address + * is not a multicast address, or the platform does not support + * multicasting * @exception SecurityException if a security manager exists and its * {@code checkMulticast} method doesn't allow the join. * @@ -384,8 +385,9 @@ class MulticastSocket extends DatagramSocket { * {@link MulticastSocket#setInterface(InetAddress)} or * {@link MulticastSocket#setNetworkInterface(NetworkInterface)} * - * @exception IOException if there is an error joining - * or when the address is not a multicast address. + * @exception IOException if there is an error joining, or when the address + * is not a multicast address, or the platform does not support + * multicasting * @exception SecurityException if a security manager exists and its * {@code checkMulticast} method doesn't allow the join. * @throws IllegalArgumentException if mcastaddr is null or is a diff --git a/jdk/src/java.base/share/classes/java/nio/channels/MulticastChannel.java b/jdk/src/java.base/share/classes/java/nio/channels/MulticastChannel.java index d1d13ebef11..f42cb8b8887 100644 --- a/jdk/src/java.base/share/classes/java/nio/channels/MulticastChannel.java +++ b/jdk/src/java.base/share/classes/java/nio/channels/MulticastChannel.java @@ -40,10 +40,11 @@ import java.net.StandardSocketOptions; // javadoc * address. * *
In the case of a channel to an {@link StandardProtocolFamily#INET IPv4} socket, - * the underlying operating system supports - * RFC 2236: Internet Group Management Protocol, Version 2 (IGMPv2). - * It may optionally support source filtering as specified by RFC 3376: Internet Group + * the underlying operating system optionally supports + * RFC 2236: Internet Group + * Management Protocol, Version 2 (IGMPv2). When IGMPv2 is supported then + * the operating system may additionally support source filtering as specified by + * RFC 3376: Internet Group * Management Protocol, Version 3 (IGMPv3). * For channels to an {@link StandardProtocolFamily#INET6 IPv6} socket, the equivalent * standards are RFC 2710: @@ -167,7 +168,8 @@ public interface MulticastChannel * If the channel already has source-specific membership of the * group on the interface * @throws UnsupportedOperationException - * If the channel's socket is not an Internet Protocol socket + * If the channel's socket is not an Internet Protocol socket, or + * the platform does not support multicasting * @throws ClosedChannelException * If this channel is closed * @throws IOException @@ -214,8 +216,9 @@ public interface MulticastChannel * If the channel is currently a member of the group on the given * interface to receive all datagrams * @throws UnsupportedOperationException - * If the channel's socket is not an Internet Protocol socket or - * source filtering is not supported + * If the channel's socket is not an Internet Protocol socket, or + * source filtering is not supported, or the platform does not + * support multicasting * @throws ClosedChannelException * If this channel is closed * @throws IOException