On Mon, 27 Jul 2026 20:13:37 GMT, Chen Liang <[email protected]> wrote:

>> The warnings for value-based classes does not mention the use of VBC 
>> instances in Reference objects. We are adding warnings for failures in JEP 
>> 401 integration; and it's beneficial for us to add something in 27 before 
>> JEP 401 lands in 28.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Chen Liang has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   "referent"

Marked as reviewed by dholmes (Reviewer).

src/java.base/share/classes/java/lang/doc-files/ValueBased.html line 73:

> 71: 
> 72: <p>Identity-related behavior of value-based classes may change in a 
> future release.
> 73:     For example, synchronization may fail.</p>

I would have expanded this part as well:
> For example, synchronization may fail, or use as a referent object may throw 
> an exception.

but it isn't critical.

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

PR Review: https://git.openjdk.org/jdk/pull/32055#pullrequestreview-4791277753
PR Review Comment: https://git.openjdk.org/jdk/pull/32055#discussion_r3660711787

Reply via email to