[lworld] Integrated: 8373701: [lworld] Revert Use Objects.equals in HashMap and ConcurrentHashmap

Roger Riggs rriggs at openjdk.org
Tue Dec 16 20:24:23 UTC 2025


On Mon, 15 Dec 2025 19:14:20 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Revert the use of Objects.equals to the previous explicit `==` check for identity and conditional call to .equals. The use of Objects.equals (without identity) caused classes with poorly written .equals methods to work incorrectly with HashMap and ConcurrentHashMap.
> 
> This reverts commit c8d4a247861052aa6ed43125bcbe49995326938f.

This pull request has now been integrated.

Changeset: 5f0a81e4
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/5f0a81e459e4eaac17a3299f431f2c968d0a5412
Stats:     45 lines in 2 files changed: 7 ins; 1 del; 37 mod

8373701: [lworld] Revert Use Objects.equals in HashMap and ConcurrentHashmap

Reviewed-by: liach

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

PR: https://git.openjdk.org/valhalla/pull/1800


More information about the valhalla-dev mailing list