JDK-8233435 : (dc) DatagramChannel should allow IPv6 socket join IPv4 multicast groups (macOS, win)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-03
  • Updated: 2021-08-14
  • Resolved: 2019-11-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b23Fixed
Related Reports
Blocks :  
Description
If a DatagramChannel is created with the no-arg open method or with the protocol family INET6 then the channel cannot join IPv4 multicast groups on macOS and Windows. Both operating system support this so we can remove this restriction. The recommendation for IPv4 multicasting is to create the DatagramChannel with protocol family INET remains of course.

Related is that on Windows, the IP_TOS and IP_MULTICAST_* socket options cannot be accessed when the socket is a dual socket that has been bound to an IPv4 local address. This is because Windows requires using the IP_ rather than IPV6_ socket options for this case.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/612c58965775 User: alanb Date: 2019-11-09 11:49:41 +0000
09-11-2019