On Fri, 4 Dec 2026 02:17:29 GMT, John R Rose <[email protected]> wrote:
>> 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?)
Other than anomalous cases, like a handful of exception objects directly
created by HotSpot without a constructor being run, don't all underlying
creation events bottom out in a constructor call?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/34140#discussion_r4794801596