fix a bug : https://jira.spring.io/projects/SPR/issues/SPR-16837?filter=allopenissues

Comment From: pivotal-issuemaster

@fomeiherz Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@fomeiherz Thank you for signing the Contributor License Agreement!

Comment From: bclozel

Sorry about the late feedback. Thanks for this contribution, but we don't think this can be merged. Bean aliases and bean definitions are two separate concepts. Once can remove a bean definition, leave the aliases in place and add a new definition replacing the former one. The aliases situation can also get more complex with runtime bean definitions or with parent/child context setups.