Community
Participate
Working Groups
Build Identifier: 20090619-0625 I attempted to use a ListWrapper object, as raw lists are not serialized correctly by JAXB (as per http://stackoverflow.com/questions/1603404/using-jaxb-to-unmarshal-marshal-a-liststring ). When the object in question has a parametrized type (ListWrapper<T>), the JaxbContext fails to initialize. When the wrapper is concrete and does not have type parameters, things work as expected. Reproducible: Always Steps to Reproduce: 1. Create a class that has type parameter <E> and which contains a List similarly parametrized (List<E>) 2. Attempt to create a new JAXBContext using this class as one of the elements passed in 3. Get a long stack trace about IndexOutOfBoundsException
Created attachment 197098 [details] This is the class that causes the problem. This is the class that causes the problem.
Created attachment 197099 [details] Stack trace Here is the stack trace
Created attachment 197101 [details] Standard JAXB implementation's serialization When using the standard JAXBContextFactory rather than moxy's, the class is serialized fine.
This issue has already been fixed in the EclipseLink 2.3.0 stream (which is currently at release candidate 3). A nightly download can be obtained here: - http://www.eclipse.org/eclipselink/downloads/nightly.php If you cannot upgrade or require the fix on a previous version please re-open the bug, and include the required version. *** This bug has been marked as a duplicate of bug 340898 ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink