Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6810394

(aio) AsynchronousDatagramChannel.read throws NotYetConnectedException if invoked on a closed chan

XMLWordPrintable

    • generic
    • generic

      There is a difference in AsynchronousDatagramChannel read() and recieve methods functionality when they are invoked on a closed channel.
      While the receive() method rightly throws ClosedChannelException,the read() method throws NotYetConnectedException in this scenario.

      The read method should also throw ClosedChannelException.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: