1 /* 2 * @test /nodynamiccopyright/ 3 * @bug 4309152 4 * @summary Compiler silently generates bytecode that exceeds VM limits 5 * @author gafter 6 * 7 * @compile/fail/ref=ArrayDims2.out -XDrawDiagnostics ArrayDims2.java 8 */ 9 10 class ArrayDims2 { 11 static Object 12 [][][][][][][][][][] 13 [][][][][][][][][][] 14 [][][][][][][][][][] 15 [][][][][][][][][][] 16 [][][][][][][][][][] 17 [][][][][][][][][][] 18 [][][][][][][][][][] 19 [][][][][][][][][][] 20 [][][][][][][][][][] 21 [][][][][][][][][][] 22 [][][][][][][][][][] 23 [][][][][][][][][][] 24 [][][][][][][][][][] 25 [][][][][][][][][][] 26 [][][][][][][][][][] 27 [][][][][][][][][][] 28 [][][][][][][][][][] 29 [][][][][][][][][][] 30 [][][][][][][][][][] 31 [][][][][][][][][][] 32 [][][][][][][][][][] 33 [][][][][][][][][][] 34 [][][][][][][][][][] 35 [][][][][][][][][][] 36 [][][][][][][][][][] 37 [][][][][][] o; // 256 = too many main(String[] args)38 public static void main(String[] args) { 39 } 40 } 41