Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327813 - @XmlElements and processed classes
Summary: @XmlElements and processed classes
Status: CLOSED 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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 354666
  Show dependency tree
 
Reported: 2010-10-14 14:19 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:24 EDT (History)
2 users (show)

See Also:


Attachments
propsed fix and tests (4.55 KB, patch)
2010-11-19 16:21 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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