Release Note: DatagramSocket.send and MulticastSocket.send Throw IllegalArgumentException When Socket Is Not Connected and Packet Doesn't Contain Address

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 14
    • Affects Version/s: 14
    • Component/s: core-libs
    • Verified

      The `send` methods defined by `DatagramSocket` and `MulticastSocket` have been changed to throw an `IllegalArgumentException` if the socket is not connected and the `DatagramPacket` doesn't have a socket address. Prior to this change, these methods threw a `NullPointerException`.

            Assignee:
            Daniel Fuchs
            Reporter:
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: