/*
* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/
* @bug 6304921
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java
*/
class T6304921 {
void m1(int i) {
switch (i) {
case 1:
i++;
// fallthrough
default:
}
try {
i++;
}
finally {
throw new Error();
// finally does not complete normally
}
}
void m2() {
}
}
class X {
void m1() {
}
boolean m2() {
return 123 + true; // bad binary expression
}
}