axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-330) Calling setText on an OMElement whose only child is an OMTextImpl concatenates rather than replaces
Date Fri, 03 Mar 2006 09:08:22 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-330?page=all ]

Deepal Jayasinghe reassigned AXIS2-330:
---------------------------------------

    Assign To: Eran Chinthaka

Chinthka can we resolve this issue ?

> Calling setText on an OMElement whose only child is an OMTextImpl concatenates rather
than replaces
> ---------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-330
>          URL: http://issues.apache.org/jira/browse/AXIS2-330
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: core
>     Versions: 0.93
>     Reporter: Craig Chaney
>     Assignee: Eran Chinthaka

>
> The first time you call setText() on an OMElement that has no children, the data structure
setup is slightly incorrect.  The previousSibling field of the OMTextImpl points back to itself
(i.e. the same OMTextImpl instance).
> Then, when calling setText() again, the logic that removes all other text children doesn't
account for this, and the end result is that the old OMTextImpl still exists in the linked
list of children.  So on the wire, both text elements appear, the second one appended to the
first one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message