RFR: 8354556: Expand value-based class warnings to java.lang.ref API [v18]
Jan Lahoda
jlahoda at openjdk.org
Mon May 19 16:02:00 UTC 2025
On Mon, 19 May 2025 14:35:40 GMT, Vicente Romero <vromero at 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
>
> Vicente Romero has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 39 commits:
>
> - Merge branch 'master' into JDK-8354556
> - review comments
> - addressing review comments
> - addressing review comments
> - update warning message
> - Merge branch 'master' into JDK-8354556
> - Update src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java
>
> Co-authored-by: Chen Liang <liach at openjdk.org>
> - additional changes from Archie
> - removing dead code
> - integrating code from Archie
> - ... and 29 more: https://git.openjdk.org/jdk/compare/265d6301...904bd4cd
javac changes look good to me.
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24746#pullrequestreview-2851310025
More information about the core-libs-dev
mailing list