1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/incompleteStatements/T8000484.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,17 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8000484 1.7 + * @summary Bad error recovery when 'catch' without 'try' is found 1.8 + * @compile/fail/ref=T8000484.out -XDrawDiagnostics T8000484.java 1.9 + */ 1.10 + 1.11 +public class T8000484 { 1.12 + void m() { 1.13 + catch (Exception e){} 1.14 + else{} 1.15 + finally{} 1.16 + catch (Exception e) {catch (Exception e){}} 1.17 + else{else{}} 1.18 + finally{finally{}} 1.19 + } 1.20 +}