Community
Participate
Working Groups
In mappings generator, we need to check for property.getType().isArray() and if so, set the container class to ArrayList. If not an array the code should do what it does now.
The following TCK exception will be thrown in the JAXBElement array case for xml-element-refs: Exception Description: The object [javax.xml.bind.JAXBElement[]], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Ensure that the class [javax.xml.bind.JAXBElement[]] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: javax/xml/bind/JAXBElement[]
Created attachment 183787 [details] Proposed fix
Created attachment 183788 [details] Supporting tests
Reviewed by: matt.macivor@oracle.com Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmlelementrefs/XmlElementRefsTestCases Revision: 8556
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink