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

Roy A. Wood Jr. commented on WSCOMMONS-326:
-------------------------------------------

Provided the following changes:

1. Added a test case for OMAttribute which checks for default value
2. Added setters/getters for 'type' on OMAttribute interface and all 
implementations
3. Implemented getAttributeType where necessary

> Axiom Is Not Preserving an Attribute's Type
> -------------------------------------------
>
>                 Key: WSCOMMONS-326
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>
> Background:
> An Attribute has a prefix, local name, prefix, value and type.
> The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", 
> "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
> (see 
> http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
> The default is "CDATA" (not null):
> Proposed Solution:
> Add getType and setType on the OMAttribute interface.  The default should be 
> "CDATA".
> Implement getType/setType on the OMAttributeImpl classes.
> Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is 
> a TODO and the method returns null.
> Impact:
> This bug was found in a conversion between StAX and SAX in side of JAXB.  The 
> missing implementation in OMStAXWrapper resulted in a NPE in the SAX 
> startElement code.

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