RFR: 8351996: Behavioral updates for ClassValue::remove [v13]

Chen Liang liach at openjdk.org
Tue May 13 13:34:41 UTC 2025


On Tue, 13 May 2025 13:30:18 GMT, Chen Liang <liach at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/ClassValue.java line 348:
>> 
>>> 346: 
>>> 347:         // Arguments are nullable, intentionally to allow initial tokens
>>> 348:         static boolean areCompatible(RemovalToken current, RemovalToken original) {
>> 
>> Are "equivalent"?
>
> Not really: if you have an original token and a current token created during the computeValue of the original token, they are compatible but not really "equivalent" (i.e. the threadId case)

Maybe `canAssociate`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24043#discussion_r2086840404


More information about the core-libs-dev mailing list