Canceling an asynchronous IO operation throws NPE
Alan Bateman
Alan.Bateman at Sun.COM
Mon Jul 28 09:10:13 PDT 2008
Umashankar wrote:
> :
> Alan,
> In my case I am specifying a CompletionHandler to the write()
> operation that I cancel immediately after initiating it.
It turns out there is a second problem here - thanks for keeping me
honest! On Solaris/Linux (Windows is okay) attempting to cancel any of
AsynchronousFileChannel operations causes this NPE with the result that
the cancelled method is not invoked. I'll get this fix in for the next
build.
-Alan.
More information about the nio-dev
mailing list