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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b125
    • Verified

        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

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

                Created:
                Updated:
                Resolved: