@ -1497,7 +1497,11 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
@@ -1497,7 +1497,11 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
if ( mbd . hasBeanClass ( ) ) {
return mbd . getBeanClass ( ) ;
}
return doResolveBeanClass ( mbd , typesToMatch ) ;
Class < ? > beanClass = doResolveBeanClass ( mbd , typesToMatch ) ;
if ( mbd . hasBeanClass ( ) ) {
mbd . prepareMethodOverrides ( ) ;
}
return beanClass ;
}
catch ( ClassNotFoundException ex ) {
throw new CannotLoadBeanClassException ( mbd . getResourceDescription ( ) , beanName , mbd . getBeanClassName ( ) , ex ) ;
@ -1505,6 +1509,10 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
@@ -1505,6 +1509,10 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
catch ( LinkageError err ) {
throw new CannotLoadBeanClassException ( mbd . getResourceDescription ( ) , beanName , mbd . getBeanClassName ( ) , err ) ;
}
catch ( BeanDefinitionValidationException ex ) {
throw new BeanDefinitionStoreException ( mbd . getResourceDescription ( ) ,
beanName , "Validation of method overrides failed" , ex ) ;
}
}
@Nullable