jdaugherty opened a new issue, #168:
URL: https://github.com/apache/grails-intellij-plugin/issues/168

   Per 
[http://grails.org/doc/latest/guide/conf.html#dataSource](http://grails.org/doc/latest/guide/conf.html#dataSource),
 defining properties for a Grails data source inside DataSource.groovy is valid 
and syntactically correct. However, the incompatible type assignments 
inspection is incorrectly flagging properties in the code sample below as 
'properties' cannot be applied to 
'(groovy.lang.Closure<java.lang.Integer>)'
   ```
       production {
           dataSource {
               dbCreate = "update"
               url = 
"jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE"
               properties {
                  // See 
[http://grails.org/doc/latest/guide/conf.html#dataSource](http://grails.org/doc/latest/guide/conf.html#dataSource)
 for documentation
                  jmxEnabled = true
                  initialSize = 5
                  maxActive = 50
                  minIdle = 5
                  maxIdle = 25
                  maxWait = 10000
                  maxAge = 10 * 60000
                  timeBetweenEvictionRunsMillis = 5000
                  minEvictableIdleTimeMillis = 60000
                  validationQuery = "SELECT 1"
                  validationQueryTimeout = 3
                  validationInterval = 15000
                  testOnBorrow = true
                  testWhileIdle = true
                  testOnReturn = false
                  jdbcInterceptors = "ConnectionState"
                  defaultTransactionIsolation = 
java.sql.Connection.TRANSACTION_READ_COMMITTED
               }
           }
       }
   ```
   The attached screen shot from IntelliJ IDEA 13.1.4 shows what I am seeing.
   
   ---
   
   *Imported from 
[IDEA-128826](https://youtrack.jetbrains.com/issue/IDEA-128826) · Type: Bug · 
Votes: 2*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to