mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart Scott (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRMINA-712) DefaultIoFilterChainBuilder.replace(String, IoFilter) throws ClassCastException
Date Wed, 03 Jun 2009 07:04:07 GMT

     [ 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.


Mime
View raw message