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-M5
Reporter: Stuart Scott
Priority: Trivial
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.