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

IntHashSet bug in representation switch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.7.0SDK
    • Core Java Framework
    • 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.

      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: