You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/10/31 21:47:39 UTC
[groovy] branch GROOVY_4_0_X updated: config script: `imports` resolve strategy
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
new 15c77e976a config script: `imports` resolve strategy
15c77e976a is described below
commit 15c77e976ac08b3efe637f2e35b88523aedf47ac
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Mon Oct 31 16:42:04 2022 -0500
config script: `imports` resolve strategy
---
.../groovy/control/customizers/builder/ImportCustomizerFactory.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/codehaus/groovy/control/customizers/builder/ImportCustomizerFactory.java b/src/main/java/org/codehaus/groovy/control/customizers/builder/ImportCustomizerFactory.java
index 3380a630df..77778efbb9 100644
--- a/src/main/java/org/codehaus/groovy/control/customizers/builder/ImportCustomizerFactory.java
+++ b/src/main/java/org/codehaus/groovy/control/customizers/builder/ImportCustomizerFactory.java
@@ -81,6 +81,7 @@ public class ImportCustomizerFactory extends AbstractFactory {
if (node instanceof ImportCustomizer) {
Closure clone = (Closure) childContent.clone();
clone.setDelegate(new ImportHelper((ImportCustomizer) node));
+ clone.setResolveStrategy(Closure.DELEGATE_FIRST);
clone.call();
}
return false;