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

/*
 * @test /nodynamiccopyright/
 * @bug 8031383
 * @summary Verify that the parser handles a missing closing brace of a block gracefully.
 * @compile/fail/ref=MissingClosingBrace.out -XDrawDiagnostics MissingClosingBrace.java
 */

public class MissingClosingBrace {
    private void test(int i) {
        if (i > 0) {

    private int i;
}