JAXB Bug in Java 1.6.0_04
Monday, March 24th, 2008JAXB in Java 1.6.0_04 can’t handle Collection<?> fields and methods. It store object as xml well, but It can’t restore object which contains filed which is intance of Collection<?> (or method which has Collection<?> as return type). That field will be just constructed, not updated.
- Java 1.6.0_03 and Java 1.6.0_05, both of them doesn’t have that problem. It looks only Java 1.6.0_04’s problem.
I recommend use Array instead of Collection for JAXB. It works well for any version of Java.