axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brecht Yperman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5006) SoapElementImpl.copyContents skips child elements
Date Mon, 18 Apr 2011 12:57:05 GMT
SoapElementImpl.copyContents skips child elements
-------------------------------------------------

                 Key: AXIS2-5006
                 URL: https://issues.apache.org/jira/browse/AXIS2-5006
             Project: Axis2
          Issue Type: Bug
          Components: saaj
    Affects Versions: 1.5.4
            Reporter: Brecht Yperman
            Priority: Blocker


When adding elements using appendChild, I lose elements

It seems to boil down to

== org.apache.axis2.saaj.SOAPElementImpl lines 936 - 940
NodeList children = child.getChildNodes();        
        for (int i = 0; i < children.getLength(); i++) {
            Node node = children.item(i);
            childEle.appendChild(node);
        }
== 

The appended child seems to be removed from the original, causing children.getLength() to
be smaller every iteration, causing elements to be missed.

I did not experience this problem in 1.5

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message