Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12642

ServiceConfigManagerImpl does not implement equals/hashCode consistently

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0, 5.5.2
    • Component/s: sms
    • Labels:
      None
    • Target Version/s:
    • Needs backport:
      Yes
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      ServiceConfigManagerImpl#equals implementation is incorrect and it will never actually return true. Since SCMI is used as key type in HashMaps this means that those HashMaps are not working correctly.

      How to reproduce the issue

      Don't really have reproduction steps for this one.

      Expected behaviour

      equals/hashCode works consistently.

      Current behaviour

      They are inconsistent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                peter.major Peter Major [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: