Vicente Romero 59347fd9bb 8000484: Bad error recovery when 'catch' without 'try' is found
Reviewed-by: jjg, mcimadamore
2012-11-05 16:26:09 +00:00

18 lines
397 B
Java

/*
* @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{}}
}
}