[
https://issues.apache.org/jira/browse/WSCOMMONS-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas resolved WSCOMMONS-398.
----------------------------------------
Resolution: Fixed
fixed in svn revision 705444.
> MTOMXMLStreamWriter does not delegate writeEmptyElement properly
> ----------------------------------------------------------------
>
> Key: WSCOMMONS-398
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-398
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Derek Guist
>
> In AXIOM version 1.2.5, looking at the source code for
> org.apache.axiom.om.impl.MTOMXMLStreamWriter, which wraps another instance of
> XMLStreamWriter, it appears that it improperly delegates the method
> writeEmptyElement(String namespace, String name) to the wrapped
> XMLStreamWriter instance. Here is the source code:
> public void writeEmptyElement(String string, String string1) throws
> XMLStreamException {
> xmlWriter.writeStartElement(string, string1);
> }
> It delegates to writeStartElement instead of writeEmptyElement which makes
> writeEmptyElement unuseful on the MTOMXMLStreamWriter instance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.