Skip to content

Commit

Permalink
fix grails#13867 - remove resolution strategy assignment and use default
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Nov 21, 2024
1 parent 25a0737 commit 1d543ea
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,10 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
bb.setBinding(b);
c.setDelegate(bb);
c.setResolveStrategy(Closure.OWNER_FIRST);
bb.invokeMethod("beans", new Object[]{c});
}
}
else {

if (!pluginBean.isReadableProperty(DO_WITH_SPRING)) {
return;
}
Expand All @@ -559,7 +557,6 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
bb.setBinding(b);
c.setDelegate(bb);
c.setResolveStrategy(Closure.DELEGATE_FIRST);
bb.invokeMethod("beans", new Object[]{c});
}

Expand Down

0 comments on commit 1d543ea

Please sign in to comment.