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


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]

Reply via email to