On Fri, 18 Apr 2025 00:06:26 GMT, Vicente Romero <vrom...@openjdk.org> wrote:

> This PR is defining a new internal annotation, 
> `@jdk.internal.RequiresIdentity`, with target types PARAMETER and 
> TYPE_PARAMETER. The @RequiresIdentity annotation expresses the expectation 
> that an argument to a given method or constructor parameter will be an object 
> with a unique identity, not an instance of a value-based class; or that the 
> type argument to a given type parameter will not be a value-based class type.
> 
> For more details please refer to the complete description in the 
> corresponding JIRA entry [1]
> 
> TIA
> 
> [1] https://bugs.openjdk.org/browse/JDK-8354556

This pull request has now been integrated.

Changeset: 637e9d16
Author:    Vicente Romero <vrom...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/637e9d16ddb21003234abcd32f759aefd91f21f9
Stats:     647 lines in 32 files changed: 562 ins; 37 del; 48 mod

8354556: Expand value-based class warnings to java.lang.ref API

Co-authored-by: Archie Cobbs <aco...@openjdk.org>
Reviewed-by: jlahoda

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

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

Reply via email to