[
https://issues.apache.org/jira/browse/UIMA-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Branimir Lambov closed UIMA-1365.
---------------------------------
Resolution: Fixed
Fixed as part of UIMA-1366.
> Code trying to ensure reverse iterators list items in the opposite order of
> forward ones is present but not working
> -------------------------------------------------------------------------------------------------------------------
>
> Key: UIMA-1365
> URL: https://issues.apache.org/jira/browse/UIMA-1365
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Reporter: Branimir Lambov
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.