The DefaultFtpServerContext implementation of dispose() has,

    Iterator listenerIter = listeners.values().iterator();
    while (listenerIter.hasNext()) {
        Bean listenerBean = (Bean);

However, AbstractListener is not a subclass of Bean, so the attempt to
cast e.g. MinaListener to this type fails with an exception.

Is the correct fix to change the cast (and use Listener#stop() rather
than Bean#destryBean() as currently), or should AbstractListener extend
Bean as well as implementing Listener (sounds messy)?



Reply via email to