Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8198753 (dc) DatagramChannel throws unspecified exceptions
  3. JDK-8200089

Release Note: DatagramChannel.send Throws AlreadyConnectedException Instead of IllegalArgumentException

XMLWordPrintable

    • Verified

      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.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: