You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Jon Folland, Nativ Ltd" <jo...@nativ.tv> on 2011/01/02 21:54:00 UTC

Possible Bug in AbstractPollingIoAcceptor.unregisterHandles() with exception handling

Hi, 

In the class AbstractPollingIoAcceptor, I believe there may be a bug in the method unregisterHandles(). 

If an exception is caught during close() or wakeup(), this exception is not set in the future object... 

for example.... future.setException((Exception)e); 

Consequently unbind0() in the same class will never throw an exception as evaluated below 

if (future.getException() != null) { 
throw future.getException(); 
} 

Regards, 

Jon.