3789983e89
Reviewed-by: darcy, ihse
41 lines
832 B
Java
41 lines
832 B
Java
/*
|
|
* @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
|
|
*/
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
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() {
|
|
List<Integer> list = new ArrayList();
|
|
}
|
|
}
|
|
|
|
class X {
|
|
void m1() {
|
|
System.orr.println("abc"); // name not found
|
|
}
|
|
boolean m2() {
|
|
return 123 + true; // bad binary expression
|
|
}
|
|
}
|