Community
Participate
Working Groups
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
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