You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Adam Lally (JIRA)" <ui...@incubator.apache.org> on 2006/11/27 16:51:22 UTC

[jira] Closed: (UIMA-65) CAS.setSofaDataString on Initial View throws ArrayIndexOutOfBoundsException

     [ http://issues.apache.org/jira/browse/UIMA-65?page=all ]

Adam Lally closed UIMA-65.
--------------------------


Eddie says fix looks good to him.

> CAS.setSofaDataString on Initial View throws ArrayIndexOutOfBoundsException
> ---------------------------------------------------------------------------
>
>                 Key: UIMA-65
>                 URL: http://issues.apache.org/jira/browse/UIMA-65
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Adam Lally
>         Assigned To: Eddie Epstein
>             Fix For: 2.1
>
>
> If I create a new CAS:
> CAS cas = CasCreationUtils.createCas(new TypeSystemDescription_impl(), null, null);
> And then call cas.setSofaDataString("this is a test","text");
> I get an ArrayIndexOutOfBoundsException.
> However, if I call cas.setDocumentText("this is a test");
> it works.
> There is a slight difference in their implementations.  setSofaDataString was calling this.baseCas.createInitialSofa(mime), whereas setDocumentText was calling this.createInitialSofa(mime).

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