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(List.<JCTree>nil(), body, catchers, finalizer);
+ }
+
+ public JCTry Try(List<JCTree> resources,
+ JCBlock body,
+ List<JCCatch> catchers,
+ JCBlock finalizer) {
+ JCTry tree = new JCTry(resources, body, catchers, finalizer);
tree.pos = pos;
return tree;
}
public JCCatch Catch(JCVariableDecl param, JCBlock body) {