Community
Participate
Working Groups
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; }
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