Marshall Schor created UIMA-5711:
------------------------------------
Summary: uv3 handle migration from alpha levels of JCas classes
more gracefully
Key: UIMA-5711
URL: https://issues.apache.org/jira/browse/UIMA-5711
Project: UIMA
Issue Type: Improvement
Components: Core Java Framework
Reporter: Marshall Schor
Assignee: Marshall Schor
Fix For: 3.0.0SDK
Alpha levels of JCas classes call TypeSystemImpl.getAdjustedFeatureOffset(...)
as part of the initialization for features. This approach was changed for beta
and later levels, and this API if used throws an exception (saying it's an old
alpha level construct).
Change this to a) not throw an exception, but just issue a warning, and b)
return -1, which, if it really is an old jcas class, at run time, if this
feature is referenced, it will cause an exception.
This will let people successfully migrate from v3 alpha levels by running for
example JCasGen from the Component Description Editor.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)