Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
14 lines
325 B
Java
14 lines
325 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6970584
|
|
* @summary Flow.java should be more error-friendly
|
|
* @author mcimadamore
|
|
*
|
|
* @compile/fail/ref=FailOver02.out -XDrawDiagnostics --should-stop=at=FLOW -XDdev FailOver02.java
|
|
*/
|
|
|
|
class Test implements AutoCloseable {
|
|
void test() {
|
|
try(Test t = null) {}
|
|
}
|
|
}
|