Community
Participate
Working Groups
According to the javadocs for @XmlJavaTypeAdapter, it may be used with @XmlElementRef(s) (as well as with @XmlAttribute, @XmlElement(s), and @XmlAnyElement). http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlJavaTypeAdapter.html The oxm XML metadata does not support this use, as xml-element-ref(s) elements have no xml-java-type-adapter elements as the others do.
According to the spec section 8.9.8.2, it may also be used with @XmlAnyAttribute.
Also (8.9.10.2) @XmlValue
Will open separate bugs to track adapter use with XmlValue and XmlAnyAttribute. XmlValue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=328822 XmlAnyAttribute: https://bugs.eclipse.org/bugs/show_bug.cgi?id=328823
Created attachment 182135 [details] Proposed fix for XmlElementRef
Created attachment 182136 [details] Supporting test cases for XmlElementRef
Reviewed by: matt.macivor@oracle.com Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmladapter/XmlAdapterTestCases; jaxb/xmladapter/hexbinary/XmlAdapterHexBinaryTestCases Revision: 8744
Updated/closed the wrong bug. Reopening.
Created attachment 185780 [details] Proposed fix
Created attachment 185781 [details] Supporting tests
Reviewed by: matt.macivor@oracle.com Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmladapter/XmlAdapterTestCases Revision: 8749
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink