Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.2
-
None
Description
While upgrading GORM to Groovy 3 we are seeing compilation error as:
> Task :grails-datastore-gorm:compileGroovy startup failed: /Users/pbehl/Projects/grails-data-mapping/grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy: 593: [Static type checking] - Cannot call org.grails.datastore.gorm.finders.DynamicFinder#populateArgumentsForCriteria(java.lang.Class <?>, org.grails.datastore.mapping.query.Query, java.util.Map <K extends java.lang.Object, V extends java.lang.Object>) with arguments [java.lang.Class <D>, org.grails.datastore.mapping.query.Query, java.util.Map] @ line 593, column 13. DynamicFinder.populateArgumentsForCriteria(persistentClass, q, params) ^ /Users/pbehl/Projects/grails-data-mapping/grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy: 758: [Static type checking] - Cannot call org.grails.datastore.gorm.finders.DynamicFinder#populateArgumentsForCriteria(java.lang.Class <?>, org.grails.datastore.mapping.query.Query, java.util.Map <K extends java.lang.Object, V extends java.lang.Object>) with arguments [java.lang.Class <D>, org.grails.datastore.mapping.query.Query, java.util.Map] @ line 758, column 13. DynamicFinder.populateArgumentsForCriteria persistentClass, q, args ^ /Users/pbehl/Projects/grails-data-mapping/grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy: 815: [Static type checking] - Cannot call org.grails.datastore.gorm.finders.DynamicFinder#populateArgumentsForCriteria(java.lang.Class <?>, org.grails.datastore.mapping.query.Query, java.util.Map <K extends java.lang.Object, V extends java.lang.Object>) with arguments [java.lang.Class <D>, org.grails.datastore.mapping.query.Query, java.util.Map] @ line 815, column 13. DynamicFinder.populateArgumentsForCriteria persistentClass, q, args ^ 3 errors > Task :grails-datastore-gorm:compileGroovy FAILED
Please check out and execute "./gradlew cTG" in the following:
https://github.com/grails/grails-data-mapping/tree/groovyStaticTypeCheckingError