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

uv3 create type systems with JCas features merged in

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0SDK-beta
    • 3.0.0SDK
    • Core Java Framework
    • None

    Description

      Some use cases involve setting up (over time) multiple CASs with similar but not identical type systems, differing in the number of features the types have. The use case for this also has JCas class definitions defining features. The following currently fails:

      1. load type T with no features, load JCas for T with features f1, f2, f3. This works correctly.
      2. Now load type T with features f1, f2, f3, using the same classloader that loaded the JCas for T previously. This fails because the offsets for f1, f2, f3 in the JCas were computed previously, and cannot be changed (because existing instances of the JCas class for T would stop working).

      Implement a fix for this that works by having the initial setup of the JCas feature offsets be preceeded by a step which, prior to committing the type system, loads the JCas classes and programmatically adds in to the type system any features defined in the JCas but not in the Type system.

      Include logging messages showing what's happening.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: