bugs.java.com
Bug ID: JDK-7094245 XMLEncoder completely ignores arrays when...
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.