--- old/test/tools/javac/TryWithResources/T7032633.java 2015-10-20 06:19:13.165458050 +0300 +++ new/test/tools/javac/TryWithResources/T7032633.java 2015-10-20 06:19:13.085458048 +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(); + } } }