| /* |
| * @test /nodynamiccopyright/ |
| * @bug 4309152 |
| * @summary Compiler silently generates bytecode that exceeds VM limits |
| * @author gafter |
| * |
| * @compile/fail/ref=ArrayDims2.out -XDrawDiagnostics ArrayDims2.java |
| */ |
| |
| class ArrayDims2 { |
| static Object |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][][][][][] |
| [][][][][][] o; // 256 = too many |
| } |