fix bug related to testArray3 for Java compiler