lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Jordan (JIRA)" <>
Subject [jira] Created: (LUCENENET-363) Compatibility fix for Mono
Date Sat, 01 May 2010 19:13:56 GMT
Compatibility fix for Mono

                 Key: LUCENENET-363
             Project: Lucene.Net
          Issue Type: Bug
         Environment: Linux/Mono 2.6.x
            Reporter: Robert Jordan
         Attachments: TestIndexReader.diff

TestIndexReader.TestTermVectors() is enumerating over a generic SortedDictionary with a non-generic

MS.NET is returning a KeyValuePair  while Mono is (correctly, IMHO) returning a DictionaryEntry,
because the user was actually requesting a non-generic enumerator.

The fix is kinda trivial: use a generic IEnumerator. The code is much readable this way, too.
See the attached patch.

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

View raw message