[
https://issues.apache.org/jira/browse/GROOVY-9233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King updated GROOVY-9233:
------------------------------
Fix Version/s: 2.5.9
> 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: 2.5.9, 3.0.0-rc-1
>
>
> 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.4#803005)