Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362905 - For DynamicJAXB, XmlAdapter's value type should be settable via XML Bindings
Summary: For DynamicJAXB, XmlAdapter's value type should be settable via XML Bindings
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rick Barkhouse CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 09:57 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:04 EDT (History)
1 user (show)

See Also:


Attachments
Patch - code changes (3.94 KB, patch)
2011-11-04 10:00 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch - test changes (4.31 KB, patch)
2011-11-04 12:23 EDT, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Barkhouse CLA 2011-11-04 09:57:47 EDT
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>
Comment 1 Rick Barkhouse CLA 2011-11-04 10:00:38 EDT
Created attachment 206463 [details]
Patch - code changes
Comment 2 Rick Barkhouse CLA 2011-11-04 12:23:54 EDT
Created attachment 206474 [details]
Patch - test changes
Comment 3 Rick Barkhouse CLA 2011-11-04 14:14:50 EDT
Fixed, reviewed by bdoughan.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:04:20 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink