2010-09-07 17:33:43 +01:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 6970584
|
|
|
|
* @summary Flow.java should be more error-friendly
|
|
|
|
* @author mcimadamore
|
|
|
|
*
|
2016-09-06 17:04:43 -07:00
|
|
|
* @compile/fail/ref=FailOver02.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver02.java
|
2010-09-07 17:33:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
class Test implements AutoCloseable {
|
|
|
|
void test() {
|
|
|
|
try(Test t = null) {}
|
|
|
|
}
|
|
|
|
}
|