aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6970584 aoqi@0: * @summary Flow.java should be more error-friendly aoqi@0: * @author mcimadamore aoqi@0: * aoqi@0: * @compile/fail/ref=FailOver02.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver02.java aoqi@0: */ aoqi@0: aoqi@0: class Test implements AutoCloseable { aoqi@0: void test() { aoqi@0: try(Test t = null) {} aoqi@0: } aoqi@0: }