Community
Participate
Working Groups
When creating a JAXB context from a class that contains a Map property with a Key or Value of an Enumeration type, one of two issues arises. If the Enumeration is included in the initial list of classes to process, a DescriptorException is thrown because EclipseLink generated a CompositeObjectMapping and sets the Enumeration as the reference class. This fails because no descriptors are generated for Enumerations. If the Enumeration was not included in the initial list of classes to process, the context is created, but the DirectMapping for the Enumeration doesn't contain the required Converter so Unmarshalling will fail, and Marshalling may be incorrect as the XmlEnumValue annotations won't have been processed.
Created attachment 170358 [details] Proposed Fix and Test Case
Attached patch checked into SVN Code Reviewed by Blaise Doughan
Fixes and Test Cases checked in
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink