MINA
  1. MINA
  2. DIRMINA-712

DefaultIoFilterChainBuilder.replace(String, IoFilter) throws ClassCastException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-M4, 2.0.0-M5
    • Fix Version/s: 2.0.0-M6
    • Component/s: Core
    • Labels:
      None

      Description

      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;

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Emmanuel Lecharny
            Reporter:
            Stuart Scott
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development