[
https://issues.apache.org/jira/browse/WSCOMMONS-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469147
]
Nick Gallardo commented on WSCOMMONS-159:
-----------------------------------------
This would be a very helpful fix. I agree with Rich that even though it's an
OMSourcedElement, it should still respect the OMNode interface and cache the
contents rather than consuming.
> OMSourcedElementImpl serialize() violates OMNode.serialize()
> -------------------------------------------------------------
>
> Key: WSCOMMONS-159
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-159
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assigned To: Rich Scheuerle
> Attachments: patch.txt
>
>
> The OMNode serialize method indicates that the OM is cached.
> /**
> * Serializes the node with caching.
> *
> * @param xmlWriter
> * @throws XMLStreamException
> */
> public void serialize(XMLStreamWriter xmlWriter) throws
> XMLStreamException;
> But OMSourcedElementImpl consumes the message. This results in errors when
> an OM tree contains a mixture of normal nodes and OMSourcedElements.
> The solution is to change OMSourcedElement to respect the OMNode "serialize"
> contracts.
> I am working on a patch containing the corrected code and validation tests.
--
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]