DatagramSocket#connect provides a reasonable description on conditions as to when PortUnreachablException is thrown. The descripion of the exception in the send and receive methods, on the other hand, aren't sufficient. These descriptions should be re-worked with a one-liner to explain that the exception may be thrown if an ICMP port unreachable packet is received and link to the corresponding description in the connect method. See 6862016 for background.
- relates to
-
JDK-6862016 (dc) DatagramChannel.send not throwing PortUnreachableException
-
- Closed
-