jdaugherty commented on code in PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#discussion_r3178404489
##########
grails-gsp/core/src/test/groovy/org/grails/gsp/GspCompileStaticSpec.groovy:
##########
@@ -86,6 +93,10 @@ class GspCompileStaticSpec extends Specification {
compileStatic << [true, false]
}
+ // Note: In Groovy 5, the g.message() syntax with g. prefix fails static
type checking
+ // because the type checking extension doesn't properly resolve the 'g'
taglib property.
Review Comment:
This is a bug. There was previously a way to invoke dynamic code from
CompileStatic code. The original ticket that added this support was:
https://issues.apache.org/jira/browse/GROOVY-6362
The follow-up ticket that claimed Groovy fixed this is:
https://issues.apache.org/jira/browse/GROOVY-11817
--
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]