JDK-8158802 : com.sun.jndi.ldap.SimpleClientId produces wrong hash code
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-06-06
  • Updated: 2016-10-13
  • Resolved: 2016-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9
6u131Fixed 7u121Fixed 8u112Fixed 9 b125Fixed
Related Reports
Relates :  
Relates :  
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