kamleshcropin / uimafit

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

JCasUtil.selectPreceding and JCasUtil.selectFollowing can not handle built in Type #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The methods JCasUtil.selectPreceding and JCasUtil.selectFollowing both contain 
the line (line number 431, 452):

Type t = aJCas.getTypeSystem().getType(aType.getName())

It would be better to replace it with

Type t = JCasUtil.getType(aJCas, aType)

to handle Uima built in types (e.g. Annotation)

Original issue reported on code.google.com by je.ha...@gmail.com on 14 Apr 2011 at 4:53

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r597.

Original comment by steven.b...@gmail.com on 15 Apr 2011 at 8:11