You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2026/08/28 20:03:14 UTC

(groovy) branch GROOVY-12303 updated: Fix "This copy constructor leaves eligible fields uninitialized" found by Sonar

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

asf-gitbox-commits pushed a commit to branch GROOVY-12303
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-12303 by this push:
     new 8d10d09885 Fix "This copy constructor leaves eligible fields uninitialized" found by Sonar
8d10d09885 is described below

commit 8d10d09885faaf8fc11ede5585e18bae1cfa7ed2
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Aug 29 05:02:52 2026 +0900

    Fix "This copy constructor leaves eligible fields uninitialized" found by Sonar
---
 src/main/java/groovy/lang/GroovyClassLoader.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/groovy/lang/GroovyClassLoader.java b/src/main/java/groovy/lang/GroovyClassLoader.java
index 62917ac808..ce833241e6 100644
--- a/src/main/java/groovy/lang/GroovyClassLoader.java
+++ b/src/main/java/groovy/lang/GroovyClassLoader.java
@@ -171,6 +171,7 @@ public class GroovyClassLoader extends URLClassLoader {
             // Keep the same default source encoding as #parseClass(InputStream,String)
             // TODO Should we use CompilerConfiguration.DEFAULT_SOURCE_ENCODING instead?
             .orElseGet(() -> groovy.util.CharsetToolkit.getDefaultSystemCharset().name());
+        this.recompile = null;
     }
 
     //--------------------------------------------------------------------------