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

DatagramSocket.send doesn't specify exception thrown when no target address

    Details

    • Subcomponent:
    • Resolved In Build:
      b24
    • Verification:
      Verified

      Description

      DatagramSocket.send doesn't specify the exception thrown when the DatagramSocket is not connected and the packet doesn't have a socket address. The current implementation throws NullPointerException, it should probably be specified to throw IllegalArgumentException.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: