src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
Print this page
*** 267,277 ****
tree.pos = pos;
return tree;
}
public JCTry Try(JCBlock body, List<JCCatch> catchers, JCBlock finalizer) {
! JCTry tree = new JCTry(body, catchers, finalizer);
tree.pos = pos;
return tree;
}
public JCCatch Catch(JCVariableDecl param, JCBlock body) {
--- 267,284 ----
tree.pos = pos;
return tree;
}
public JCTry Try(JCBlock body, List<JCCatch> catchers, JCBlock 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) {