[ https://issues.apache.org/jira/browse/GROOVY-9233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun resolved GROOVY-9233. -------------------------------- Fix Version/s: 3.0.0-beta-4 Assignee: Eric Milles Resolution: Fixed Fixed by https://github.com/apache/groovy/commit/2572c62f06621330babf0f008c1a4021242f41ef Thanks. > Add @ClosureParams to closure input parameter of Sql.withBatch(...) > ------------------------------------------------------------------- > > Key: GROOVY-9233 > URL: https://issues.apache.org/jira/browse/GROOVY-9233 > Project: Groovy > Issue Type: Improvement > Components: SQL processing > Affects Versions: 2.5.8 > Reporter: Mauro Molinari > Assignee: Eric Milles > Priority: Major > Fix For: 3.0.0-beta-4 > > > Similar to GROOVY-9229. > The overloadings of {{groovy.sql.Sql.withBatch(...)}} do not declare the > closure input parameter type. It's not so straightforward to find out what is > the type of the parameter the closure is expected to receive, you have to > read the Javadoc carefully or look at the implementation. The documentation > at [http://groovy-lang.org/databases.html] talks about statements and > prepared statements, but actually the injected parameter is of type > {{BatchingStatementWrapper}} or {{BatchingPreparedStatementWrapper}}, > depending on the overloading. > It's especially annoying when you use static compilation. -- This message was sent by Atlassian Jira (v8.3.2#803003)