You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Stuart Scott (JIRA)" <ji...@apache.org> on 2009/06/03 09:04:07 UTC

[jira] Closed: (DIRMINA-712) DefaultIoFilterChainBuilder.replace(String, IoFilter) throws ClassCastException

     [ https://issues.apache.org/jira/browse/DIRMINA-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Scott closed DIRMINA-712.
--------------------------------


> DefaultIoFilterChainBuilder.replace(String, IoFilter) throws ClassCastException
> -------------------------------------------------------------------------------
>
>                 Key: DIRMINA-712
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-712
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-M4, 2.0.0-M5
>            Reporter: Stuart Scott
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-M6
>
>
> The issue can simply be fixed by replacing the call to get(String) with getEntry(String) as in the following patch.
> --- core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChainBuilder.java        (revision 776654)
> +++ core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChainBuilder.java        (working copy)
> @@ -287,7 +287,7 @@
>      public synchronized IoFilter replace(String name, IoFilter newFilter) {
>          checkBaseName(name);
> -        EntryImpl e = (EntryImpl) get(name);
> +        EntryImpl e = (EntryImpl) getEntry(name);
>          IoFilter oldFilter = e.getFilter();
>          e.setFilter(newFilter);
>          return oldFilter;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.