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: Rich Scheuerle
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]