[ 
https://issues.apache.org/jira/browse/UIMA-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466294
 ] 

Marshall Schor commented on UIMA-217:
-------------------------------------

Subversion commit forgot to include the UIMA-217 tag.

This comment copies the commit comment and shows the updated files:

Removed isAnnotationType(int) from CASImpl - is never called
(anymore) and its use is likely to be an error.  Left in
isAnnotationType(Type) - used by Annotation Viewer

Added new error message for creating subtypes of AnnotationBase 
on the "base CAS", changed the CASImpl error message 
for this to the new error message.  Added check in TOP 
for this, and made it check for any subtype of AnnotationBase.

Hand edited CASRuntimeException.java for new message.

Files updates:

.../uimaj-core/src/main/java/org/apache/uima/cas/CASRuntimeException.java
.../uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java
.../uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP.java
.../uimaj-core/src/main/resources/org/apache/uima/UIMAException_Messages.properties

> actions creating new instances which are subtypes of AnnotationBase should 
> set the sofa ref
> -------------------------------------------------------------------------------------------
>
>                 Key: UIMA-217
>                 URL: https://issues.apache.org/jira/browse/UIMA-217
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.1
>            Reporter: Marshall Schor
>         Assigned To: Marshall Schor
>            Priority: Minor
>
> Currently the code only does this for subtypes of Annotation, not 
> AnnotationBase, at least for the JCas (TOP impl)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to