OMSourcedElementImpl should close its parser
--------------------------------------------
Key: WSCOMMONS-193
URL: https://issues.apache.org/jira/browse/WSCOMMONS-193
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Reporter: Rich Scheuerle
Assigned To: Rich Scheuerle
When an OMSourcedElement is expanded, it retrieves a parser (XMLStreamReader)
from the OMDataSource.
This parser is distinct from the parser that is associated with the rest of the
tree, and unaffected by anything happening with the tree's builder parser.
When setComplete(true) is invoked on the OMSourcedElement, this parser (if
accessed) should be closed.
This is a simple fix that was discovered while performance testing. Failure to
close an XMLStreamReader can have negative performance implications (for
example, the parser cannot be reused).
I will provide a fix soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]