Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236105 Behaviors of DatagramSocket/DatagramChannel::socket send methods are not always consistent
  3. JDK-8237530

Release Note: DatagramSocket.send() and MulticastSocket.send() methods throw an IllegalArgumentException if the socket is not connected and the packet's port is out of range

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Withdrawn
    • P4
    • None
    • None
    • core-libs
    • None
    • Verified

    Description

      The behavior of `DatagramSocket` and `MulticastSocket` has been changed to throw `IllegelArgumentException` if not connected and passed a packet containing a port out of range, where previously a `SocketException` (or no exception) might have been thrown, depending on the underlying system.

      Attachments

        Issue Links

          Activity

            People

              pconcannon Patrick Concannon (Inactive)
              pconcannon Patrick Concannon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: