uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-4352) index contains and find methods incorrect when index type has subtypes
Date Mon, 04 May 2015 19:07:06 GMT

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

Mime
View raw message