7023403: (ch) sun.nio.ch.SolarisEventPort.startPoll failed with AssertionError

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 4 11:32:34 PST 2011


Rémi Forax wrote:
>
> In my opinion, it's more readable to do an instanceof 
> AsynchronousCloseException.
> Even if AsynchronousCloseException inherits from ClosedChannelException.
Okay, either will work here.

>
> Also, it can be more efficient to do the instanceof check in 
> lockAndUpdateEvents;
That would mean that lockAndUpdateEvents would need to know about the 
exception, whereas I think it's a bit more understandable now.

-Alan


More information about the nio-dev mailing list