--- old/test/tools/javac/TryWithResources/T7032633.java 2015-10-14 09:44:24.851473478 +0300 +++ new/test/tools/javac/TryWithResources/T7032633.java 2015-10-14 09:44:24.779473476 +0300 @@ -33,8 +33,15 @@ public class T7032633 { void test() throws IOException { + // declared resource try (OutputStream out = System.out) { out.flush(); } + + // resource as variable + OutputStream out = System.out; + try (out) { + out.flush(); + } } }