[ 
https://issues.apache.org/jira/browse/WSCOMMONS-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595248#action_12595248
 ] 

Rich Scheuerle commented on WSCOMMONS-338:
------------------------------------------

Added the code as part of WSCOMMONS-341.
I will now add the test.

Thanks,
Rich

> OMStAXWrapper#hasText should return true for CDATA sections
> -----------------------------------------------------------
>
>                 Key: WSCOMMONS-338
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-338
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Andreas Veithen
>         Attachments: OMStAXWrapperTest.java, WSCOMMONS-338.patch.txt
>
>
> For CDATA sections, the hasText method in OMStAXWrapper returns false, 
> causing getTextCharacters to return null. Both methods should behave in the 
> same way for CDATA and CHARACTER events.
> The hasText method is part of the implementation of the XMLStreamReader 
> interface and must therefore conform to the StAX specifications. Sun's JWSDP 
> indeed doesn't mention CDATA in the Javadoc of this method (see 
> http://java.sun.com/webservices/docs/2.0/api/javax/xml/stream/XMLStreamReader.html).
>  I believe that this is a mistake. Anyway, getTextCharacters should return a 
> non null value for CDATA events.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to