Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.8
-
None
Description
The various overloadings of Sql.withInstance do not specify the input parameter type of the closure, which is groovy.sql.Sql. Hence, if you want even minimal help from the IDE you won't get anything, unless you declare the input type in your closure declaration:
Example:
Sql.withInstance(url, user, pass) { sql -> sql.connec| <= invoke code assist here }
The IDE does not give any help and, if the surrounding code is type checked, you'll even get a compilation error.
Required workaround:
Sql.withInstance(url, user, pass) { Sql sql -> sql.connec| <= invoke code assist here }
Attachments
Issue Links
- links to