The SafeXMLStreamReader should rethrow the saved exception when access is 
attempted.
------------------------------------------------------------------------------------

                 Key: WSCOMMONS-527
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-527
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Background:
The SafeXMLStreamReader wraps a StAX parser.  If an access to the StAX parser 
causes an exception, the SafeXMLStreamReader remembers that the parser is in an 
error state and does not allow subsequent accesses.

Problem:
When a parser is in an error state, the SafeXMLStreamReader should throw the 
prior exception so that it can be properly handled by calling code.  

Solution:
I have a simple change to the SafeXMLStreamReader to remember and throw the 
original exception.
I also have a small validation test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to