matrei commented on code in PR #15070:
URL: https://github.com/apache/grails-core/pull/15070#discussion_r2359260475


##########
grails-scaffolding/src/main/groovy/grails/plugin/scaffolding/RestfulServiceController.groovy:
##########
@@ -49,8 +50,9 @@ class RestfulServiceController<T extends GormEntity<T>> 
extends RestfulControlle
     }
 
     @Override
+    @CompileDynamic

Review Comment:
   To be able to compile statically, we can implement `WebAttributes` or do:
   ```groovy
   protected Integer countResources() {
       def params = ((GrailsWebRequest) 
RequestContextHolder.currentRequestAttributes()).params
       getService().count(params)
   }
   ```



-- 
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