On Fri, 17 Jul 2026 02:41:57 GMT, Dan Smith <[email protected]> wrote:

> Some final polishing to align javadocs with the JEP.
> 
> - Main goal is to remove usage of "statewise equivalent", as noted in the 
> title
> - A little bit of general editing in the Object intro, `equals` method, and 
> `clone` method
> - Corrected "the finalize method of a value ~class~ _object_ will never be 
> invoked"
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/java.base/share/classes/java/lang/Object.java line 49:

> 47:  *          It is not possible to synchronize on a value object. Applying 
> a {@code
> 48:  *          synchronize} statement to a value object causes an {@link 
> IdentityException}
> 49:  *          to be thrown.

I think the original is preferable as the normal terminology is about 
"synchronizing on objects". I don't recall "applying a statement" to be common 
terminology with regards to statements.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2651#discussion_r3600164448

Reply via email to