|[eclipselink-dev] JAXB 2.1 TCK - Add "Keep As Element" support to XMLAnyObjectCollectionMapping|
Fix submitted for the following bug:
Description: To be compliant with JAXB 2.1, when unmarshalling a document such as:
<?xml version="1.0"?> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mgA001.xsd"> <t1/> </root>
With this fix, we now create an empty Element for t1, previously we were setting it to null. This involved adding a KeepAsElement policy to XMLAnyObjectMapping, this fix includes an update to the Eclipselink deployment xml project and schema as well.
Found in JAXB TCK Tests: xml_schema/msData/modelGroups/jaxb
Test Cases: AnyObjectKeepUnknownAsElementTestCases
Patch attached to bug, reviewed by Matt MacIvor.
Back to the top