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

moveTo for bag index incorrectly setting position to 0 if not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0SDK
    • Core Java Framework
    • None

    Description

      The bag index implementation for moveTo(fs) sets an invalid iterator position when the new PositiveIntSet impl is being used. moveTo(fs) doesn't really have a good meaning for bag indexes, since there's no "key" to use in comparing. But the current impl does a "reasonable" thing of a) moving to the == identical FS if it exists in the index, or (it tries to ) move to the first one. Change the impl to actually moveToFirst() if not found, so it works also with the PositiveIntSet impl.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: