nkiesel
02/27/2017, 7:32 PMFile("B").bufferedWriter()
throws, c1
is never closed. The other issue is that often, c1
and c2
are related and the block needs both (at least implicitly. Consider the canonical `try (Connection c = getC(); Resultset r = getR(c)) { return r.getInt(1);}`: construction of r
needs c
, and block requires c
to be still open.