Skip to content

Commit 80588a9

Browse files
authored
Merge pull request #13868 from jdaugherty/feature/7.0.0/13867-delegate-resolution
2 parents eb223e9 + 0501666 commit 80588a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

grails-core/src/main/groovy/org/grails/plugins/DefaultGrailsPlugin.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,9 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
541541
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
542542
bb.setBinding(b);
543543
c.setDelegate(bb);
544-
c.setResolveStrategy(Closure.OWNER_FIRST);
545544
bb.invokeMethod("beans", new Object[]{c});
546545
}
547-
}
548-
else {
549-
546+
} else {
550547
if (!pluginBean.isReadableProperty(DO_WITH_SPRING)) {
551548
return;
552549
}
@@ -559,7 +556,6 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
559556
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
560557
bb.setBinding(b);
561558
c.setDelegate(bb);
562-
c.setResolveStrategy(Closure.DELEGATE_FIRST);
563559
bb.invokeMethod("beans", new Object[]{c});
564560
}
565561

0 commit comments

Comments
 (0)