[ http://issues.apache.org/jira/browse/AXIS2-739?page=all ]

Deepal Jayasinghe reassigned AXIS2-739:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> [ADB] Get rid of getElementTextProperly hack in generated code
> --------------------------------------------------------------
>
>          Key: AXIS2-739
>          URL: http://issues.apache.org/jira/browse/AXIS2-739
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Reporter: Davanum Srinivas
>     Assignee: Ajith Harshana Ranabahu

>
> Could we please do the needful in AXIOM and get rid of the hack in the 
> generated code?
> thanks,
> dims
>         // This is horrible, but the OM implementation of getElementText() 
> does not obey the proper contract.  Specifically, it does
>         // does not advance the reader to the END_ELEMENT.  This bug is 
> triggered by calls to getElementText() unpredictably, e.g. it
>         // happens with outer (document) elements, but not with inner 
> elements.  The root bug is in OMStAXWrapper.java, which is now part
>         // of commons and so cannot just be fixed in axis2.  This method 
> should be removed and the calls to it below replaced with
>         // simple calls to getElementText() as soon as this serious bug can 
> be fixed.
>         private static java.lang.String 
> getElementTextProperly(javax.xml.stream.XMLStreamReader reader) throws 
> java.lang.Exception {
>             java.lang.String value = reader.getElementText();
>             while (!reader.isEndElement())
>                 reader.next();
>             return value;
>         }

-- 
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

Reply via email to