Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328155

Summary: JAXB Externalized Metadata: Support for type on xml-elements
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: david.mccann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rick Barkhouse CLA 2010-10-19 12:33:35 EDT
In Dynamic JAXB we have no way of finding the type of the Java attribute
specified in an xml-elements element in OXM.  We will need to add a 'type' attribute to xml-elements, so that we can override the
java.lang.Object Java attribute that is initially present in Dynamic JAXB.
Comment 1 David McCann CLA 2010-10-21 14:29:32 EDT
Since xml-elements is intended to be used on a collection, would you require container-type as well?
Comment 2 David McCann CLA 2010-10-25 15:15:11 EDT
It appears as if we've already done container-type, so that is not an issue.  Type is however:  according to the spec, if the type is known then the XmlElements list has to be of size 1, and the rules for XmlElement mapping applies.  Type doesn't seem necessary in this case.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:29:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink