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