SimpleAliasRegistry.hasAlias does not properly resolve multiple chained aliases [SPR-17191] #21726
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
hachi029 opened SPR-17191 and commented
here are test cases:
SimpleAliasRegistry sar = new SimpleAliasRegistry();
sar.registerAlias("name", "alias_a");
sar.registerAlias("name", "alias_b");
sar.registerAlias("real_name", "name");
assertTrue((sar).hasAlias("real_name", "alias_b")); //case 1
sar.registerAlias("name", "alias_d");
assertFalse((sar).hasAlias("real_name", "alias_b")); //case 2
Affects: 4.3.18
Backported to: 4.3.19
The text was updated successfully, but these errors were encountered: