You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2017/09/01 18:43:00 UTC

[jira] [Commented] (UIMA-5544) XmiCasDeserializer test doing invalid cas building - causes error in uv3

    [ https://issues.apache.org/jira/browse/UIMA-5544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16151002#comment-16151002 ] 

Marshall Schor commented on UIMA-5544:
--------------------------------------

only fixed the test case

> 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: 3.0.0SDK-beta, 2.10.2SDK
>
>
> 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)