Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17191

SimpleAliasRegistry.hasAlias does not properly resolve multiple chained aliases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.18
    • Fix Version/s: 4.3.19, 5.0.9, 5.1 RC2
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            hachi029 hachi029
            Last updater:
            Spring Issuemaster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 40 weeks, 6 days ago