Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0SDK-alpha02
-
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.