8202252: (aio) Closed AsynchronousSocketChannel keeps completion handler alive

Alan Bateman Alan.Bateman at oracle.com
Mon Jul 2 15:53:19 UTC 2018


On 02/07/2018 16:41, Roger Riggs wrote:
> A bit tidier would be to create a ReferenceQueue so the WeakReference 
> is enqueued when it is ready.
> Then the test can just wait on it to be enqueued, no sleeping required.
Yes, that would be better but the main point is that the reference 
should be to the handler object, it it otherwise not testing the right 
thing.

-Alan


More information about the nio-dev mailing list