DatagramPacket::setPort is missing its `@throws IllegalArgumentException` from its spec for an out-of-range port numbers.
Subsquently, several methods within this class which call on this method also don't declare this behaviour in their spec e.g. DatagramPacket::setSocketAddress, and several of the DatagramPacket contructors.
Subsquently, several methods within this class which call on this method also don't declare this behaviour in their spec e.g. DatagramPacket::setSocketAddress, and several of the DatagramPacket contructors.
- duplicates
-
JDK-7021373 DatagramPacket exception conditions are not clear
-
- Resolved
-
- relates to
-
JDK-8236105 Behaviors of DatagramSocket/DatagramChannel::socket send methods are not always consistent
-
- Resolved
-