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 2016/01/03 02:30:40 UTC

[jira] [Created] (UIMA-4721) Nested protect blocks not adding back in all cases

Marshall Schor created UIMA-4721:
------------------------------------

             Summary: Nested protect blocks not adding back in all cases
                 Key: UIMA-4721
                 URL: https://issues.apache.org/jira/browse/UIMA-4721
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 2.8.1SDK
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Minor
             Fix For: 3.0.0SDKexp, 2.8.2SDK


The protect block mechanism has a provision to handle nested protect blocks.  It does this by keeping a stack of nested contexts. 

The close of the protect block checks to see if nested protect blocks were not closed.  If this is the case, the nested ones are closed automatically starting with the most deeply nested one. The logic for doing this has an off-by-one error, which would result in an array index out of bounds.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)