Skip to content

Java config bean definitions are overridden by superclass (SPR-10992) - #390

Closed
chelu wants to merge 1 commit into
spring-projects:masterfrom
chelu:SPR-10992
Closed

chelu wants to merge 1 commit into
spring-projects:masterfrom
chelu:SPR-10992

Conversation

@chelu

@chelu chelu commented Oct 19, 2013

Copy link
Copy Markdown

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 to
ConfigurationClass that filter overriden methods,
for use in ConfigurationClassBeanDefinitionReader

Issue: SPR-10992

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.

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

Issue: SPR-10992
@chelu

chelu commented Nov 4, 2013

Copy link
Copy Markdown
Author

Closed as issue is now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant