Community
Participate
Working Groups
We should support setting an array type via the container-type attribute. For example, public class Employee { public Object[] peers; } <xml-element java-attribute="peers" type="Employee" container-type="Employee[]" /> There is a bug open against JDK6 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149) that affects this support. We need to create a JavaClass from the string (in the above case, "Employee[]") which requires a classloader.loadClass call. loadClass on arrays fails in JDK6 but not in JDK5. We will need to work around this with something like: Array.newInstance("Employee.class").getClass();
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink