Richard Eckart de Castilho created UIMA-6421:
------------------------------------------------

             Summary: Can inject String value into StringArray slot
                 Key: UIMA-6421
                 URL: https://issues.apache.org/jira/browse/UIMA-6421
             Project: UIMA
          Issue Type: Bug
            Reporter: Richard Eckart de Castilho
             Fix For: 3.3.0SDK


Via the CAS API, it is possible to inject a {{String}} value into a 
{{StringArray}} feature slot - probably into any other slot as well.

* Define a type with a {{StringArray}} valued feature
* Create an instance of the type using {{CAS.createAnnotation}}
* Set a the feature value on the a annotation using 
{{Annotation.setStringValue(...)}}
* Try fetching the feature value using {{Annotation.getFeatureValue}}

When setting a value on a slot, it should be checked if the value is suitable 
for the slot.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to