| Summary: | Properties of type Object are always treated as @XmlElement | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||||||
| Component: | Eclipselink | Assignee: | Blaise Doughan <blaise.doughan> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipselink.oxm-inbox | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 194555 [details]
MOXy - Fix
Created attachment 194598 [details]
MOXy - Test Cases
Created attachment 194599 [details]
MOXy - Fix
Fix checked into trunk at rev: 9298 Fix checked into 2.2.1 at rev: 9299 Code Reviewed By: Matt MacIvor Fix Description: When field/property is of type Object, check to see if it is mapped as an @XmlAttribute before making an XMLCompositeObjectMapping. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
In the following use case MOXy is always treating the bar field as an @XmlElement even when it is annotated with @XmlAttribute. @XmlAccessorType(XmlAccessType.FIELD) public class Foo { @XmlAttribute private Object bar; }