JDK-6691215 : (coll) IdentityHashMap.containsValue(null) returns true when null value not present
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-04-20
  • Updated: 2012-10-08
  • Resolved: 2008-05-19
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 Other
6u10Fixed 7 b27Fixed OpenJDK6Fixed
IdentityHashMap's containsValue method returns true when the null value is not present but there are free slots in the table. This bug was brought up on the core-libs-dev mailing list:
(Look for the second reply from Josh Bloch)

EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/9781e5c7b9ba

EVALUATION see discussion on core-libs-dev mailing list from the description section.