Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias resolution error message in SimpleAliasRegistry is misleading #32025

Closed
sbrannen opened this issue Jan 14, 2024 · 0 comments
Closed

Alias resolution error message in SimpleAliasRegistry is misleading #32025

sbrannen opened this issue Jan 14, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@sbrannen
Copy link
Member

While working on #31353, I noticed that the alias resolution error message in SimpleAliasRegistry is misleading.

Specifically, when a resolution conflict is detected, the resolveAliases(StringValueResolver) method throws an IllegalStateException stating that the resolved alias is already registered for the registeredName; whereas, it should state that the resolved alias is already registered for an existingName.

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Jan 14, 2024
@sbrannen sbrannen added this to the 6.1.4 milestone Jan 14, 2024
@sbrannen sbrannen self-assigned this Jan 14, 2024
@sbrannen sbrannen added type: bug A general bug and removed type: enhancement A general enhancement labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant