[
https://issues.apache.org/jira/browse/UIMA-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009173#comment-17009173
]
Marshall Schor commented on UIMA-6159:
--------------------------------------
Another alternative: change (all of) the APIs for select where it has parms of
type TOP to type FeatureStructure. FeatureStructure is an interface, and
superinterface of AnnotationFS.
Maybe the best is to have both: arg of TOP (to avoid a runtime cast) and arg of
FeatureStructure (for generality)
> select.startAt() cannot be called with AnnotationFS argument
> ------------------------------------------------------------
>
> Key: UIMA-6159
> URL: https://issues.apache.org/jira/browse/UIMA-6159
> Project: UIMA
> Issue Type: Improvement
> Components: UIMA
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Priority: Major
>
> The method
> SelectFSs<T> startAt(TOP fs);
> Does not accept an `AnnotationFS` instance as argument because AnnotationFS
> does not extend TOP. However, the documentation clearly states that this
> method requires an AnnotationIndex and a "starting position", so I guess it
> only works for subtypes of AnnotationFS?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)