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

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

XMLWordPrintable

    • b24
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: