Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334933 - Root level enumerations fail to marshal in JAXB
Summary: Root level enumerations fail to marshal in JAXB
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: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 13:15 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:04 EDT (History)
0 users

See Also:


Attachments
proposed fix and test case (11.16 KB, patch)
2011-01-20 14: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 Matt MacIvor CLA 2011-01-20 13:15:46 EST
Create a context from an enumeration class. Wrap the enum in a JAXBElement and try to marshal. EclipseLink will fail to marshal due to a missing descriptor for the enumeration class.

EclipseLink needs to generate a wrapper class for all enumerations in order to handle them as root-level objects wrapped in JAXB Element. 

This can be triggered using a similar mechanism to what's used for binary types (byte[] etc).
Comment 1 Matt MacIvor CLA 2011-01-20 14:21:13 EST
Created attachment 187230 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-01-20 17:07:19 EST
Attached patch checked in to SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:04:54 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink