Oops, AsynchronousChannel.close()'s Javadoc reads:
"further attempts to initiate asynchronous I/O operations complete immediately with cause ClosedChannelException."
That being said, shouldn't the read/write methods still document this as an exception that may be thrown?
Gili
Gili wrote:
The Javadoc talks about what happens if a channel is closed while an operation is pending but it says nothing about what happens if someone tries reading after a close() operation completed. Shouldn't the methods throw an appropriate exception?
Gili