Path: blob/master/test/langtools/tools/javac/6304921/T6304921.java
41149 views
/*1* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/2* @bug 63049213* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java4*/56import java.util.ArrayList;7import java.util.List;89class T6304921 {10void m1(int i) {11switch (i) {12case 1:13i++;14// fallthrough15default:16}1718try {19i++;20}21finally {22throw new Error();23// finally does not complete normally24}25}2627void m2() {28List<Integer> list = new ArrayList();29}30}3132class X {33void m1() {34System.orr.println("abc"); // name not found35}36boolean m2() {37return 123 + true; // bad binary expression38}39}404142