diff --git a/grails-core/src/main/groovy/org/grails/plugins/DefaultGrailsPlugin.java b/grails-core/src/main/groovy/org/grails/plugins/DefaultGrailsPlugin.java index 0186ccf5df..214e3e3f47 100644 --- a/grails-core/src/main/groovy/org/grails/plugins/DefaultGrailsPlugin.java +++ b/grails-core/src/main/groovy/org/grails/plugins/DefaultGrailsPlugin.java @@ -541,12 +541,9 @@ 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 { - + } else { if (!pluginBean.isReadableProperty(DO_WITH_SPRING)) { return; } @@ -559,7 +556,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}); }