test/tools/javac/limits/CodeSize.java

Print this page
rev 2218 : [mq]: first

*** 25,35 **** * @test * @bug 4309152 * @summary Compiler silently generates bytecode that exceeds VM limits * @author gafter * ! * @compile/fail CodeSize.java */ class CodeSize { void f() { { int[] i = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}; } --- 25,35 ---- * @test * @bug 4309152 * @summary Compiler silently generates bytecode that exceeds VM limits * @author gafter * ! * @compile/fail/ref=CodeSize.out -XDrawDiagnostics CodeSize.java */ class CodeSize { void f() { { int[] i = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}; }