Community
Participate
Working Groups
According to the spec section 8.9.10.2, XmlJavaTypeAdapter may be used with @XmlValue.
Created attachment 181873 [details] Proposed fix
Created attachment 181874 [details] Supporting tests
Example use: <?xml version="1.0" encoding="US-ASCII"?> <xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm"> <java-types> <java-type name="org.example.MyValueClass"> <xml-root-element name="boolean" /> <java-attributes> <xml-value java-attribute="blah"> <xml-java-type-adapter value="org.example.MyValueAdapter" /> </xml-value> </java-attributes> </java-type> </java-types> </xml-bindings> Reviewed by: matt.macivor@oracle.com Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmlvalue/XmlValueTestCases revision: 8427
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink