RFR: 8178355: IdentityHashMap uses identity-based comparison for values everywhere except remove(K,V) and replace(K,V,V) [v6]

liach duke at openjdk.org
Wed Oct 5 03:53:17 UTC 2022


On Wed, 5 Oct 2022 03:40:27 GMT, liach <duke at openjdk.org> wrote:

>> Explicitly implement `remove` and `replace` in `IdentityHashMap` to compare values by identity. Updated API documentation of these two methods ([Preview](https://cr.openjdk.java.net/~liach/8178355/IdentityHashMap.html#remove(java.lang.Object,java.lang.Object))) to mention such behavior.
>
> liach has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Spec updates and clarifications.

I have updated the specification section of the CSR with the updated `remove` and `replace` spec (adding parentheses around equality expressions and replace "to" with "with") and pulled your branch.

-------------

PR: https://git.openjdk.org/jdk/pull/8259


More information about the core-libs-dev mailing list