1.1 --- a/src/share/classes/com/sun/tools/javac/tree/Pretty.java Thu Jul 15 16:31:56 2010 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/tree/Pretty.java Fri Jul 16 19:35:24 2010 -0700 1.3 @@ -691,6 +691,19 @@ 1.4 public void visitTry(JCTry tree) { 1.5 try { 1.6 print("try "); 1.7 + if (tree.resources.nonEmpty()) { 1.8 + print("("); 1.9 + boolean first = true; 1.10 + for (JCTree var : tree.resources) { 1.11 + if (!first) { 1.12 + println(); 1.13 + indent(); 1.14 + } 1.15 + printStat(var); 1.16 + first = false; 1.17 + } 1.18 + print(") "); 1.19 + } 1.20 printStat(tree.body); 1.21 for (List<JCCatch> l = tree.catchers; l.nonEmpty(); l = l.tail) { 1.22 printStat(l.head);