Marshall Schor created UIMA-5544:
------------------------------------
Summary: XmiCasDeserializer test doing invalid cas building -
causes error in uv3
Key: UIMA-5544
URL: https://issues.apache.org/jira/browse/UIMA-5544
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Reporter: Marshall Schor
Assignee: Marshall Schor
Priority: Minor
Fix For: 2.10.2SDK, 3.0.0SDK-beta
The XmiCasDeserializerTest does an invalid operation: It runs two tests
sequentially (in the same method), with a cas reset inbetween them. But the
first test creates two FSs which are held in Java local variables, and reused
after the CAS has been reset (they were never recreated after the CAS was
reset).
This causes some strange behavior in Uima V3 (in its current state), which
trips a runtime check. The easy fix is to recreate the two FSs after the cas
reset.
Besides fixing the test case, maybe add a (maybe optional) catcher for these
kinds of errors: something like detecting if a FS that was created in CAS nnn
(where nnn is different for different CASs and different "resets" of the same
CAS) is attempted to be set as a reference in another CASnnn. Or maybe this is
overdesign, since no one's complained...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)