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:42:20 UTC
[groovy] branch master updated: config script: `imports` resolve strategy
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new d9d8bdb63e config script: `imports` resolve strategy
d9d8bdb63e is described below
commit d9d8bdb63ea395ba14d895ae61e5f9799d247552
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;