| Summary: | Fails to map arrays of enums | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Markus Heiden <markus> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | denise.mahar, eclipselink.oxm-inbox | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 196588 [details]
Proposed changes and test
We were missing a check to handle enum types in the place where we deal with arrays. Fixed (patch and new test attached). The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: 2.3.0.v20110516-r9382 When I try to map a field per @XmlElement which is an array of an enum type (CodeType) like: public class CommandBuffer { @XmlElement private final CodeType[] types; ... } MOXy fails with Exception [EclipseLink-110] (Eclipse Persistence Services - 2.3.0.v20110516-r9382): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Descriptor is missing for class [[...].CodeType]. Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[types] Descriptor: XMLDescriptor([...].CommandBuffer --> []) When I change the type to list of the same enum type, like: @XmlElement private final List<CodeType> types; everything works like expected. Reproducible: Always Steps to Reproduce: See Details