diff -r 000000000000 -r 959103a6100f test/tools/javac/incompleteStatements/T8000484.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/incompleteStatements/T8000484.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,17 @@ +/* + * @test /nodynamiccopyright/ + * @bug 8000484 + * @summary Bad error recovery when 'catch' without 'try' is found + * @compile/fail/ref=T8000484.out -XDrawDiagnostics T8000484.java + */ + +public class T8000484 { + void m() { + catch (Exception e){} + else{} + finally{} + catch (Exception e) {catch (Exception e){}} + else{else{}} + finally{finally{}} + } +}