antlr/grammars-v4 — pull request #9 by cowang (2013-03-22 20:41:14+00:00)
Title: Correct array creation

“If there are no dimension expressions, then there must be an array initializer.” - from JLS 7 Topic 15.10.1

My original code allowed array creation such as
new int[];
but it must have either a dimension, e.g.,
new int[10];
or an initializer, e.g.,
new int[] {1,2,3};
There is no problem with the Java 6 grammar (Java.g4).