AmaliaMV opened a new issue, #14589:
URL: https://github.com/apache/grails-core/issues/14589
When I have a class with a property called 'attributes' and add
@GrailsCompileStatic annotation, I have a compile error.
Here is the example class
```
package neo4jSampleApp.core
import grails.compiler.GrailsCompileStatic
@GrailsCompileStatic
class Player extends BaseGraphDomain {
String name
Integer number
List attributes
static belongsTo = [club: Club]
static constraints = {
name nullable: false, blank: false, unique: true
number nullable: false, validator: { (Integer) it > 0 }
attributes nullable: true
}
}
```
This is the error:
```
[Static type checking] - Cannot call
neo4jSampleApp.core.Player#attributes(java.util.Map <java.lang.String,
java.lang.Object>) with arguments [java.util.LinkedHashMap <java.lang.String,
java.lang.Boolean>]
@ line 18, column 9.
attributes nullable: true
^
1 error
FAILURE: Build failed with an exception.
```
Apparently, the compiler try use attributes() method from DynamicAttributes
trait.
[Here is the link to the example
app](https://github.com/AmaliaMV/neo4jSampleApp.git)
--
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]