Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233318

Remove MulticastSocket methods that operate on java.net.InetAddress

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 14
    • core-libs
    • None

      There are a number of methods in MulticastSocket that operate on a
      java.net.InetAddress. These methods have been superseded, in Java 1.4,
      by equivalents that operate on a java.net.NetworkInterface ( which
      itself was added in java 1.4). Operating on the network interface is
      more reliable than an InetAddress, and therefore these newer methods are
      the preferred way to interact with MulticsatSocket. The older methods
      should be deprecated, with a view to eventual removal.

      Remove:
        void setInterface(InetAddress)
        InetAddress getInterface()
        void joinGroup(InetAddress)
        void leaveGroup(InetAddress)
        
      Effective replacements are:
        void setNetworkInterface(NetworkInterface)
        NetworkInterface getNetworkInterface()
        joinGroup(SocketAddress, NetworkInterface)
        void leaveGroup(SocketAddress, NetworkInterface)

        There are no Sub-Tasks for this issue.

            Unassigned Unassigned
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: