spring-projects/spring-framework — pull request #398 by chelu (2013-10-30 09:46:22+00:00)
Title: Fix configuration class overriden/overloaded methods issues (SPR-10992, SPR-10988)

When adding bean methods from a configuration class,
overridden methods from superclass are added too and
it's bean definition overrides those declared in the subclass.

The fix add a new method, getBeanMethodsToDefine that filter
overriden methods for use in ConfigurationClassBeanDefinitionReader

When overloading methods from a configuration class, the most
specific subclass bean method is invoked only if

- Argument types has the best match
- Overloaded method in subclass has the same number of arguments.

The fix sets the factory method to use from beanMethod metadata to
RootBeanDefinition.resolvedConstructorOrFactoryMethod in
ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod()
to avoid looking for appropiate factory method in ConstructorResolver later.

This pull request already includes changes from https://github.com/spring-projects/spring-framework/pull/390

Issues: SPR-10992, SPR-10988