JDK-8200089 : Release Note: DatagramChannel.send Throws AlreadyConnectedException Instead of IllegalArgumentException
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-03-22
  • Updated: 2019-04-09
  • Resolved: 2018-03-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11Resolved
Related Reports
Relates :  
Description
Prior to JDK 11, invoking `DatagramChannel.send(ByteBuffer,SocketAddress)` on a `DatagramChannel` connected to an address different from the address specified to the method caused an unspecified  `IllegalArgumentException` to be thrown.  In Java SE 11, the specification has been clarified to specify `java.nio.channels.AlreadyConnectedException` for this case, and the implementation has been changed to throw the correct exception.