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

IntHashSet bug in representation switch

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0SDK
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      The IntHashSet impl switches representation between one which can store adjusted ints (adjusted by constant offset) in 2 bytes and one which needs 4 bytes.

      The switch is incorrectly happening during the adjustKey phase - no switch is needed except for the "add" case.

      The switch is counted on not to occur for the contains case, and when it does, a NPE is thrown.

      Check other adjusting impls for this same kind of thing.

        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