On Fri, 26 Jun 2026 15:43:09 GMT, Alan Bateman <[email protected]> wrote:

> Updates to java.lang.Object API docs:
> 
> - Improve preview-comment in class description that defines value class and 
> value object
> - Update spec for the finalize method to make it clear when finalize method 
> of a value class is never invoked by the garbage collector
> - Update the implSpec for the clone to specify behavior of Object.clone for 
> value objects. Also add paragraph to method description for value objects, 
> and add API note to advise using copy constructors or static factory methods 
> instead
> - Improve preview-comment in wait/notify methods and drop confusing addition 
> to IMSE exception
> 
> A sanity test is added, this depends on the fix to finalizer registration in 
> pull/2589.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: a5bfc3e2
Author:    Alan Bateman <[email protected]>
Committer: Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/a5bfc3e253beeec3d2d89e491ccc0c119250cf33
Stats:     269 lines in 2 files changed: 223 ins; 12 del; 34 mod

8387417: [lworld] API doc improvements for java.lang.Object

Reviewed-by: jpai, liach

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

PR: https://git.openjdk.org/valhalla/pull/2588

Reply via email to