The impl of JCas TOP has code in it to copy into the newly created feature structure in the CAS, the CAS's current sofa ref:

   if (casImpl.isAnnotationType(jcasType.casTypeCode)) {
     casImpl.setSofaFeat(addr, casImpl.getSofaRef());

But this seems to not be general enough. I think it should be done if the type being created is a subtype of
AnnotationBase, not just Annotation.

Do others agree?  Does other code (not using the JCas) have a similar issue?

-Marshall

Reply via email to