You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/05/08 16:08:56 UTC

[jira] Assigned: (WSCOMMONS-338) OMStAXWrapper#hasText should return true for CDATA sections

     [ https://issues.apache.org/jira/browse/WSCOMMONS-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle reassigned WSCOMMONS-338:
----------------------------------------

    Assignee: Rich Scheuerle

> 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
>            Assignee: Rich Scheuerle
>         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.