Anton Pryamostanov created GROOVY-8847: ------------------------------------------
Summary: TryCatchStatement - adding constructor with List<CatchStatement> parameter Key: GROOVY-8847 URL: https://issues.apache.org/jira/browse/GROOVY-8847 Project: Groovy Issue Type: Improvement Affects Versions: 2.5.2 Reporter: Anton Pryamostanov Currently TryCatchStatement only has 1 constructor: {code} public TryCatchStatement(Statement tryStatement, Statement finallyStatement) { this.tryStatement = tryStatement; this.finallyStatement = finallyStatement; } {code} As per existing practice for other Statements and Expressions, suggest to add the missing constructor: {code} public TryCatchStatement(Statement tryStatement, Statement finallyStatement, List<CatchStatement> catchStatements) { this.tryStatement = tryStatement; this.finallyStatement = finallyStatement; this.catchStatements = catchStatements; } {code} This will make initialization easier. Note: GeneralUtils does not have helper method for TryCatchStatement. -- This message was sent by Atlassian JIRA (v7.6.3#76005)