Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233141 DatagramSocket.send doesn't specify exception thrown when no target address
  3. JDK-8234266

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

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Delivered
    • P4
    • 14
    • 14
    • core-libs
    • Verified

    Description

      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`.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: