Community
Participate
Working Groups
If an @XmlAttachmentRef annotation is used on a DataHandler property that also has an @XmlElement annotation with a type specified. The JAXB Reference Implementation seems to ignore the type specified on the XmlElement annotation in the case of XmlAttachmentRef. EclipseLink however changes the type of the property which invalidates the XmlAttachmentRef annotation (since it's only allowed on DataHandler properties). This will either lead to a validation exception, or to it being mapped with a DirectMapping and simply marshalling out the toString value of the DataHandler.
Created attachment 188811 [details] Fix part 1
Attached patch checked in to SVN Reviewed by David McCann
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink