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(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) {