On Thu, 3 Dec 2026 13:24:05 GMT, Alan Bateman <[email protected]> wrote:

>> Dan Smith has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Saying more about "identity" and creation events
>
> src/java.base/share/classes/java/lang/Object.java line 78:
> 
>> 76:  *          It is impossible for an {@code equals} method, or any other 
>> Java
>> 77:  *          code, to treat two indistinguishable objects as distinct, 
>> even if
>> 78:  *          they refer to value objects produced by different creation 
>> events.
> 
> Are you sure you want to use the phrase "creation events" here? It's an 
> overloaded term and kinda jumps out here (I could  imagine someone asking if 
> this is about listener events or some other event).
> 
> I'm not sure about "they refer" too. Maybe it could be clearer to just say 
> "even if the value objects ..".

The term "creation events" is intended to cover not only expressions like "new 
Foo()" but anything else that can create objects.  If we say "new object 
creation" or the like there is a risk of users conflating the set of object 
creations with the set "new Foo" executions.  Got a better term that avoids 
conflation?  (Or an argument that conflation is OK?)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/34140#discussion_r4794314552

Reply via email to