Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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).