[
https://issues.apache.org/jira/browse/UIMA-6269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on UIMA-6269 started by Richard Eckart de Castilho.
--------------------------------------------------------
> select.coveredBy with includeAnnotationsWithEndBeyondBounds has broken edge
> case
> --------------------------------------------------------------------------------
>
> Key: UIMA-6269
> URL: https://issues.apache.org/jira/browse/UIMA-6269
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Priority: Major
> Fix For: 3.2.0SDK
>
>
> coveredBy should find any annotations starting in the selection range and
> optionally including those which do not end in the selection range. There is
> an edge case where this does not work if the begin of the selection range is
> equal to the begin of an annotation that extends beyond the end of the
> selection range. The following test fails:
> {noformat}
> AnnotationFS annotation = cas.createAnnotation(cas.getAnnotationType(), 0, 2);
> cas.addFsToIndexes(annotation);
> List<AnnotationFS> result = cas.select(Annotation.class)
> .coveredBy(0, 1)
> .includeAnnotationsWithEndBeyondBounds()
> .collect(toList());
> assertThat(result)
> .as("Selection (0-1) including start position (0) but not end
> position (2)")
> .containsExactly(annotation);
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)