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

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6843f70b88a3
            User: igerasim
            Date: 2016-06-21 14:49:19 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6843f70b88a3 User: igerasim Date: 2016-06-21 14:49:19 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/6843f70b88a3
            User: lana
            Date: 2016-06-29 21:04:34 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/6843f70b88a3 User: lana Date: 2016-06-29 21:04:34 +0000

              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: