bugs.java.com
Bug ID: JDK-7094245 XMLEncoder completely ignores arrays when...
When run with Java 1.6_21 the code works fine regardless of the access specifier of arr.ERROR MESSAGES/STACK TRACES THAT OCCUR : The example doesnt produce any error messages.