jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 8031383
4* @summary Verify that the parser handles a missing closing brace of a block gracefully.
5* @compile/fail/ref=MissingClosingBrace.out -XDrawDiagnostics MissingClosingBrace.java
6*/
7
8public class MissingClosingBrace {
9private void test(int i) {
10if (i > 0) {
11
12private int i;
13}
14