sudeep87 / uimafit

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

JCasUtil.selectSingle() is not binary backwards-compatible to 1.1.0 #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The return value of the method JCasUtil.selectSingle() has changed from <T 
extends FeatureStructure> to <T extends TOP> as part of issue 58.

We had to notice that Java throws a NoSuchMethodException at runtime due to 
this change when a project depends on code compiled against uimaFIT 1.1.0 but 
depends itself on uimaFIT 1.2.0 or on other code compiled against uimaFIT 
1.2.0. This is something we had not expected, because Java does not consider 
the return value as part of the signature when dispatching method calls.

There is no workaround. It is not possible to mix code compiled against uimaFIT 
1.1.0 with code compiled against uimaFIT 1.2.0.

Original issue reported on code.google.com by richard.eckart on 29 May 2011 at 9:28