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

uv3 change JCas feature slot initialization to be more lazy

    XMLWordPrintableJSON

Details

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

    Description

      The current implementation of JCas classes requires that a type system associated with a JCas class be committed before the JCas class is loaded. This causes some existing code to fail, because they're causing a JCas class to be loaded before the type system is committed (see UIMA-5554).

      The reason for this design in v3 was to enable the computation of the offsets for accessing features in feature structures to be done once and saved in static final int values, for efficiency.
      Find a new approach, which is as efficient, but is more lazy - allowing JCas classes to be loaded, and later a corresponding type system commit to be run.

      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: