Marshall Schor created UIMA-4184:
------------------------------------

             Summary: IntHashSet bug in representation switch
                 Key: UIMA-4184
                 URL: https://issues.apache.org/jira/browse/UIMA-4184
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Blocker
             Fix For: 2.7.0SDK


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to