Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8158802

com.sun.jndi.ldap.SimpleClientId produces wrong hash code

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b125
    • Verification:
      Verified

      Backports

        Description

        The hash code is computed as

                 myHash = super.hashCode()
                    + (username != null ? username.hashCode() : 0)
                    + (passwd != null ? passwd.hashCode() : 0);

        where passwd may be an array, which results in unique hash code for each such instance of SimpleClientId

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igerasim Ivan Gerasimov
                  Reporter:
                  igerasim Ivan Gerasimov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: