JAXB Bug in Java 1.6.0_04

JAXB 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.

Tags: , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word