fix bug related to array initialization in Java compiler