I added `@CompileDynamic` to the controller method...
# questions
t
I added
@CompileDynamic
to the controller method and tested it out. Everything worked as expected.
p
Grails 6.2 updates to Apache Groovy 3.0.21 where I think Groovy is becoming more stricter and there might be some issues with generics or type casting. So, either option is to explicitly do the type casting or remove
CompileStatic
.
👍 1
Additionally, I'd recommend reporting an issue with Groovy which will be fixed in next patch version.
👍 1