uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-4721) Nested protect blocks not adding back in all cases
Date Sun, 03 Jan 2016 01:30:40 GMT
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)

Mime
View raw message