The behavior of `DatagramSocket` and `MulticastSocket` has been changed to throw `IllegelArgumentException` if not connected and passed a packet containing a port out of range, where previously a `SocketException` (or no exception) might have been thrown, depending on the underlying system.
- relates to
-
JDK-8236105 Behaviors of DatagramSocket/DatagramChannel::socket send methods are not always consistent
- Resolved