mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Folland, Nativ Ltd" <jon.foll...@nativ.tv>
Subject Possible Bug in AbstractPollingIoAcceptor.unregisterHandles() with exception handling
Date Sun, 02 Jan 2011 20:54:00 GMT

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

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(); 



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message