[ 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