langtools/test/tools/javac/incompleteStatements/T8000484.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 14450 7a62c5b13d6e
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg

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