src/share/classes/com/sun/tools/javac/tree/TreeMaker.java

Print this page

        

@@ -267,11 +267,18 @@
         tree.pos = pos;
         return tree;
     }
 
     public JCTry Try(JCBlock body, List<JCCatch> catchers, JCBlock finalizer) {
-        JCTry tree = new JCTry(body, catchers, finalizer);
+        return Try(body, catchers, finalizer, List.<JCTree>nil());
+    }
+    
+    public JCTry Try(JCBlock body,
+                     List<JCCatch> catchers,
+                     JCBlock finalizer,
+                     List<JCTree> resources) {
+        JCTry tree = new JCTry(body, catchers, finalizer, resources);
         tree.pos = pos;
         return tree;
     }
 
     public JCCatch Catch(JCVariableDecl param, JCBlock body) {