1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/failover/FailOver02.java Tue Sep 07 17:33:43 2010 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6970584 1.7 + * @summary Flow.java should be more error-friendly 1.8 + * @author mcimadamore 1.9 + * 1.10 + * @compile/fail/ref=FailOver02.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver02.java 1.11 + */ 1.12 + 1.13 +class Test implements AutoCloseable { 1.14 + void test() { 1.15 + try(Test t = null) {} 1.16 + } 1.17 +}