You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/07/30 18:05:07 UTC

(grails-core) 01/04: fix: update type to remove CompileDynamic

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch micronautTests
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 6a433ee4ff0c8c82638ebea4151395f7b8b90dcc
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Fri Jul 11 21:37:22 2025 -0400

    fix: update type to remove CompileDynamic
---
 grails-core/src/main/groovy/grails/boot/GrailsApp.groovy | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/grails-core/src/main/groovy/grails/boot/GrailsApp.groovy b/grails-core/src/main/groovy/grails/boot/GrailsApp.groovy
index e219f3b27f..52e7a6d01b 100644
--- a/grails-core/src/main/groovy/grails/boot/GrailsApp.groovy
+++ b/grails-core/src/main/groovy/grails/boot/GrailsApp.groovy
@@ -26,7 +26,6 @@ import grails.plugins.GrailsPlugin
 import grails.plugins.GrailsPluginManager
 import grails.util.BuildSettings
 import grails.util.Environment
-import groovy.transform.CompileDynamic
 import groovy.transform.CompileStatic
 import groovy.util.logging.Slf4j
 import org.codehaus.groovy.control.CompilationFailedException
@@ -143,7 +142,6 @@ class GrailsApp extends SpringApplication {
         configuredEnvironment = environment
     }
 
-    @CompileDynamic // TODO: Report Groovy VerifierError
     protected void enableDevelopmentModeWatch(Environment environment, ConfigurableApplicationContext applicationContext, String... args) {
         def location = environment.getReloadLocation()
 
@@ -235,8 +233,7 @@ class GrailsApp extends SpringApplication {
 
                 while (isDevelopmentModeActive()) {
                     // Workaround for some IDE / OS combos - 2 events (new + update) for the same file
-                    def uniqueChangedFiles = changedFiles as Set
-
+                    def uniqueChangedFiles = changedFiles as Set<File>
 
                     def i = uniqueChangedFiles.size()
                     try {