JDK-8237530 : Release Note: DatagramSocket.send() and MulticastSocket.send() methods throw an IllegalArgumentException if the socket is not connected and the packet's port is out of range
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Closed
  • Resolution: Withdrawn
  • Submitted: 2020-01-20
  • Updated: 2020-04-27
  • Resolved: 2020-04-27
Related Reports
Relates :  
Description
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. 
Comments
the note is no longer needed - Patrick
27-04-2020