Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5711

uv3 handle migration from alpha levels of JCas classes more gracefully

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0SDK
    • Core Java Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: