[
https://issues.apache.org/jira/browse/UIMA-6289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225470#comment-17225470
]
Richard Eckart de Castilho commented on UIMA-6289:
--------------------------------------------------
I can reproduce the issue with your code. Looking into it now. Note - I can
still reproduce the issue without any uimaFIT in there and compiling against
the current UIMA Java SDK master.
> SelectFS.coveredBy not selecting annotations with exact same bounds as
> annotation argument
> ------------------------------------------------------------------------------------------
>
> Key: UIMA-6289
> URL: https://issues.apache.org/jira/browse/UIMA-6289
> Project: UIMA
> Issue Type: Bug
> Components: uimaj
> Affects Versions: 3.1.1SDK
> Reporter: Mario Juric
> Priority: Major
> Attachments: selectfs-issue.zip
>
>
> Invoking jCas.select(Annotation.class).coveredBy(annotation), where
> annotation is a direct subtype of Annotation, does not return all expected
> annotations when compared to JCasUtil.selectCovered. In the attached unit
> test all annotations that have the exact same bounds as annotation are not
> selected, only those that are completely enclosed get selected (begin >
> annotation.getBegin() and end < annotation.getEnd()). JCasUtil.selectCovered
> includes the missing annotations. Switching type priorities on didn't make a
> difference, and we don't use type priorities for the moment, so we rather
> avoid this.
> [^selectfs-issue.zip]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)