JDK-8233319 : Deprecate MulticastSocket methods that operate on java.net.InetAddress
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-10-31
  • Updated: 2020-02-12
  • Resolved: 2019-12-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 b27Fixed
Related Reports
Blocks :  
CSR :  
Description
Methods of MulticastSocket to deprecate (1) and their equivalent (2):

(1) getInterface()
(2) getNetworkInterface()

(1) joinGroup(InetAddress mcastaddr)
(2)joinGroup(SocketAddress mcastaddr, NetworkInterface netIf)

(1) leaveGroup(InetAddress mcastaddr)
(2) leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf)

(1) setInterface(InetAddress inf)
(2) setNetworkInterface(NetworkInterface netIf)

(1) getLoopbackMode()
(2) DatagramSocket.getOption(IP_MULTICAST_LOOP)

(1) setLoopbackMode(boolean disable)
(2) DatagramSocket.setOption(IP_MULTICAST_LOOP, enable) 

Deprecation only, not for removal.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/c445504316e4 User: dfuchs Date: 2019-12-09 13:18:07 +0000
09-12-2019