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/05/04 21:07:06 UTC

[jira] [Updated] (UIMA-4352) index contains and find methods incorrect when index type has subtypes

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

Marshall Schor updated UIMA-4352:
---------------------------------
    Component/s: Core Java Framework

> index contains and find methods incorrect when index type has subtypes
> ----------------------------------------------------------------------
>
>                 Key: UIMA-4352
>                 URL: https://issues.apache.org/jira/browse/UIMA-4352
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.7.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>
> The Javadocs in FSIndex (the general interface for UIMA index implementations) has two methods, contains(FeatureStructure) and find(FeatureStructure), which state the obvious definition.  UIMA Indexes are over some Type and its subtypes.  The current implementation of these methods only check the topmost Type of that index, and ignore subtypes.  So, for instance, if you have an index over type T, and add-to-indexes a subtype of T, and then ask if the index contains that one, implementation only checks the top-most "type", and incorrectly returns false.  Find also fails in the same way.



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