RFR: JDK-8310913 Move ReferencedKeyMap to jdk.internal so it may be shared [v10]

ExE Boss duke at openjdk.org
Sun Feb 11 17:43:13 UTC 2024


On Mon, 5 Feb 2024 16:59:51 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> ok, `intern(e) == e` is sufficient.
>
> Created https://bugs.openjdk.org/browse/JDK-8325255

While `intern(e) == e` is (mostly) sufficient, it will return a false positive when `add(e)` is called and `e` is already present in the map, the correctest implementation would be some internal API in `ReferencedKeyMap` for implementing `ReferencedKeySet::add`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14684#discussion_r1485634936


More information about the core-libs-dev mailing list