Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1365

Code trying to ensure reverse iterators list items in the opposite order of forward ones is present but not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3
    • Core Java Framework
    • None

    Description

      FSIndexRepositoryImpl contains pieces of code that are meant to ensure forward and reverse iterators are inverses of each other by doing additional comparison by FS address to resolve equality. However, this is not fully implemented and isn't working properly.

      The iteratorComparator defined by the PointerIterator class is not used for sorting elements in moveToNext() and moveToPrevious(), where the default comparators for the iterators are used instead. For the typical use of PointerIterator of listing the annotation index this does not cause a problem as the type priorities ensure ordering between indexes of different types, while the ordering is always defined within the individual indexes.

      The piece of code implementing the extra comparison should either be removed or corrected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              barnie B Lambov (old handle)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: