6994946: option to specify only syntax errors as unrecoverable

Reviewed-by: darcy, mcimadamore
This commit is contained in:
Jonathan Gibbons 2010-10-28 18:58:43 -07:00
parent 3e7e25e084
commit 49e996e3c1
11 changed files with 148 additions and 32 deletions

View file

@ -0,0 +1,13 @@
/*
* @test /nodynamiccopyright/
* @bug 6994946
* @summary option to specify only syntax errors as unrecoverable
* @library ../../lib
* @build JavacTestingAbstractProcessor TestProcessor
* @compile/fail/ref=SemanticErrorTest.1.out -XDrawDiagnostics -processor TestProcessor SemanticErrorTest.java
* @compile/fail/ref=SemanticErrorTest.2.out -XDrawDiagnostics -XDonlySyntaxErrorsUnrecoverable -processor TestProcessor SemanticErrorTest.java
*/
class SemanticErrorTest implements Runnable, Runnable {
public void run() { }
}