google-code-export / uimafit

Automatically exported from code.google.com/p/uimafit
2 stars 1 forks source link

JCasUtil.selectCovered should accept AnnotationFS #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JCasUtil.selectCovered should allow to select within an AnnotationFS, not only 
within an Annotation.

Original issue reported on code.google.com by richard.eckart on 8 Nov 2011 at 1:17

GoogleCodeExporter commented 9 years ago
Should be compatible since Annotation implements AnnotationFS.

Original comment by richard.eckart on 8 Nov 2011 at 1:33

GoogleCodeExporter commented 9 years ago
We have many select-type methods that accept only Annotation and only one that 
accepts AnnotationFS (JCasUtil.selectCovered(Class<T>, AnnotationFS)). Probably 
all the methods that take a Annotation should be changed.

Original comment by richard.eckart on 2 Jan 2012 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 2 Jan 2012 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 4 Jan 2012 at 10:51

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 5 Jul 2012 at 4:02

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 5 Jul 2012 at 8:37

GoogleCodeExporter commented 9 years ago
Changed others to AnnotationFS as well.

Original comment by richard.eckart on 5 Jul 2012 at 9:30

GoogleCodeExporter commented 9 years ago
This change may not be binary backwards-compatible, even though Annotation 
implements AnnotationFS. I get this exception in some older compiled code:

java.lang.NoSuchMethodError: 
org.uimafit.util.JCasUtil.isCovered(Lorg/apache/uima/jcas/JCas;Lorg/apache/uima/
jcas/tcas/Annotation;Ljava/lang/Class;)Z

Original comment by richard.eckart on 16 Jul 2012 at 7:26