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 22, 2024
1 parent c0750cb commit b4c1937
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 b4c1937

Please sign in to comment.