Skip to content

Alias resolution error message in SimpleAliasRegistry is misleading #32025

@sbrannen

Description

@sbrannen

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions