| Summary: | For DynamicJAXB, XmlAdapter's value type should be settable via XML Bindings | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Rick Barkhouse <rick.barkhouse> | ||||||
| Component: | Eclipselink | Assignee: | Rick Barkhouse <rick.barkhouse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | blaise.doughan | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 206463 [details]
Patch - code changes
Created attachment 206474 [details]
Patch - test changes
Fixed, reviewed by bdoughan. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
To allow the user to use dynamic types as the Value type for an XmlAdapter, support must be added to allow value type to be specified in XML Bindings. eg.: <java-type name="addresslink.Customer"> <xml-root-element/> <java-attributes> <xml-element java-attribute="id" type="java.lang.String"/> <xml-element java-attribute="name" type="java.lang.String"/> <xml-element java-attribute="address" name="link" namespace="http://www.w3.org/2005/Atom" type="addresslink.Address"> <xml-java-type-adapter value="addresslink.LinkAdapter" value-type="addresslink.Link"/> </xml-element> </java-attributes> </java-type>