Thu, 10 Oct 2013 14:58:04 +0200
8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
duke@1 | 1 | /* |
duke@1 | 2 | * @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/ |
duke@1 | 3 | * @bug 6304921 |
jjg@611 | 4 | * @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java |
duke@1 | 5 | */ |
duke@1 | 6 | |
duke@1 | 7 | import java.util.ArrayList; |
duke@1 | 8 | import java.util.List; |
duke@1 | 9 | |
duke@1 | 10 | class T6304921 { |
duke@1 | 11 | void m1(int i) { |
duke@1 | 12 | switch (i) { |
duke@1 | 13 | case 1: |
duke@1 | 14 | i++; |
duke@1 | 15 | // fallthrough |
duke@1 | 16 | default: |
duke@1 | 17 | } |
duke@1 | 18 | |
duke@1 | 19 | try { |
duke@1 | 20 | i++; |
duke@1 | 21 | } |
duke@1 | 22 | finally { |
duke@1 | 23 | throw new Error(); |
duke@1 | 24 | // finally does not complete normally |
duke@1 | 25 | } |
duke@1 | 26 | } |
duke@1 | 27 | |
duke@1 | 28 | void m2() { |
duke@1 | 29 | List<Integer> list = new ArrayList(); |
duke@1 | 30 | } |
duke@1 | 31 | } |
duke@1 | 32 | |
duke@1 | 33 | class X { |
duke@1 | 34 | void m1() { |
duke@1 | 35 | System.orr.println("abc"); // name not found |
duke@1 | 36 | } |
duke@1 | 37 | boolean m2() { |
duke@1 | 38 | return 123 + true; // bad binary expression |
duke@1 | 39 | } |
duke@1 | 40 | } |