You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2015/01/20 04:20:34 UTC

[jira] [Resolved] (UIMA-4184) IntHashSet bug in representation switch

     [ https://issues.apache.org/jira/browse/UIMA-4184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor resolved UIMA-4184.
----------------------------------
    Resolution: Fixed

> 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)