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

Bug 327813

Summary: @XmlElements and processed classes
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.twelves, eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 354666    
Attachments:
Description Flags
propsed fix and tests none

Description Blaise Doughan CLA 2010-10-14 14:19:38 EDT
If the user specifies a class in an annotation, we should process the metadata for that class.  Currently we are not.

    @XmlElements(value = { 
            @XmlElement(name="address", 
                        type=Address.class),
            @XmlElement(name="phone-number", 
                        type=PhoneNumber.class),
            @XmlElement(name="note", 
                        type=String.class)
    })
    private Object contactInfo;


The above annotation should trigger us to process the Address and PhoneNumber classes.
Comment 1 Matt MacIvor CLA 2010-11-19 16:21:56 EST
Created attachment 183505 [details]
propsed fix and tests
Comment 2 Matt MacIvor CLA 2010-11-19 16:34:11 EST
Attached patch checked in to SVN
Reviewed by David McCann
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:24:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink