[ https://issues.apache.org/jira/browse/UIMA-4352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor resolved UIMA-4352. ---------------------------------- Resolution: Fixed > 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)