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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0SDK
    • Component/s: Core Java Framework
    • Labels:
      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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development