Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-339

FilterCleaner throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The FilterCleaner that is used by the FilterManager to purge filters throws an exception when called:

      System.InvalidCastException: Objects are not Map.Entry: a is System.Int32; b is System.Int32
      at Lucene.Net.Search.FilterManager.FilterCleaner.AnonymousClassComparator.Compare(Object a, Object b) in C:\SVN Projects\Lucene.Net\trunk\C#\src\Lucene.Net\Search\FilterManager.cs:line 210
      at System.Collections.Generic.SortedDictionary`2.KeyValuePairComparer.Compare(KeyValuePair`2 x, KeyValuePair`2 y)
      at System.Collections.Generic.TreeSet`1.Add(T item)
      at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)
      at Lucene.Net.Search.FilterManager.FilterCleaner.Run() in C:\SVN Projects\Lucene.Net\trunk\C#\src\Lucene.Net\Search\FilterManager.cs:line 251
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      at System.Threading.ThreadHelper.ThreadStart()

      I'm working on a patch and will post it shortly.

      Attachments

        1. LUCENENET-339.patch
          5 kB
          Michael Garski

        Activity

          People

            Unassigned Unassigned
            mgarski Michael Garski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: