Skip to content

Commit 9c5be5e

Browse files
committed
Merge branch '3.1.x' of github.com:grails/grails-core into 3.1.x
2 parents ac0387f + 6260f48 commit 9c5be5e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

grails-core/src/main/groovy/org/grails/spring/context/support/MapBasedSmartPropertyOverrideConfigurer.groovy

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ class MapBasedSmartPropertyOverrideConfigurer implements BeanFactoryPostProcesso
6060
final beanPropertyValue = beanPropertiesMap.get(beanPropertyName)
6161
applyPropertyValue(factory, beanName.toString(), beanPropertyName.toString(), beanPropertyValue)
6262
}
63-
6463
}
65-
6664
}
67-
6865
}
6966

7067
protected void applyPropertyValue(ConfigurableListableBeanFactory factory, String beanName, String property, Object value) {
@@ -116,15 +113,14 @@ class MapBasedSmartPropertyOverrideConfigurer implements BeanFactoryPostProcesso
116113
}
117114

118115
protected BeanDefinition getTargetBeanDefinitionForFactoryBean(ConfigurableListableBeanFactory factory,
119-
String beanName, BeanDefinition beanDefinition, Class beanClass) {
116+
String beanName, BeanDefinition beanDefinition, Class<? extends FactoryBean> beanClass) {
120117

121118
if (TransactionProxyFactoryBean.isAssignableFrom(beanClass)) {
122119
getTargetBeanDefinition(factory, beanName,
123120
(BeanDefinition)beanDefinition.propertyValues.getPropertyValue("target").value)
124121
}
125122
else {
126-
throw new BeanCreationException(beanName,
127-
"Unable to determine target bean definition for FactoryBeans of type " + beanClass.name)
123+
beanDefinition
128124
}
129125
}
130126
}

0 commit comments

Comments
 (0)