[lworld] RFR: 8373701: [lworld] Revert Use Objects.equals in HashMap and ConcurrentHashmap
Roger Riggs
rriggs at openjdk.org
Tue Dec 16 15:19:29 UTC 2025
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.
-------------
Commit messages:
- Revert "8366214: [lworld] Use Objects.equals in HashMap and ConcurrentHashmap"
Changes: https://git.openjdk.org/valhalla/pull/1800/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1800&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373701
Stats: 45 lines in 2 files changed: 7 ins; 1 del; 37 mod
Patch: https://git.openjdk.org/valhalla/pull/1800.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1800/head:pull/1800
PR: https://git.openjdk.org/valhalla/pull/1800
More information about the valhalla-dev
mailing list