[ 
https://issues.apache.org/jira/browse/DIRMINA-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129166#comment-14129166
 ] 

Emmanuel Lecharny commented on DIRMINA-977:
-------------------------------------------

You are perfectly right. This is a mistake. We should call the 
onPreAdd/onPostAdd methods when we replace a IoFilter in the chain.

> DefaultIoFilterChain.replace does not call register/deregister
> --------------------------------------------------------------
>
>                 Key: DIRMINA-977
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-977
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.7
>            Reporter: Jens Reimann
>             Fix For: 2.0.8
>
>
> In the class DefaultIoFilterChain the methods add*, remove all call register 
> or deregister in order to have the IoFilters on*() methods called.
> Calling the replace method simply sets the new instance, but neither does the 
> old IoFilter get deregistered nor does the new one get registered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to