1/* 2 * @test /nodynamiccopyright/ 3 * @bug 6994946 4 * @summary option to specify only syntax errors as unrecoverable 5 * @library /tools/javac/lib 6 * @modules java.compiler 7 * jdk.compiler 8 * @build JavacTestingAbstractProcessor TestProcessor 9 * @compile/fail/ref=SyntaxErrorTest.out -XDrawDiagnostics -processor TestProcessor SyntaxErrorTest.java 10 * @compile/fail/ref=SyntaxErrorTest.out -XDrawDiagnostics -XDonlySyntaxErrorsUnrecoverable -processor TestProcessor SyntaxErrorTest.java 11 */ 12 13class SyntaxErrorTest { 14 int i 15} 16