> 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).
Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision: - Use statewise equivalent consistently - Merge branch 'lworld' into Clone - Adjust timeout - Fix finalize spec - More word smithing - More improvements - More improvements - Merge branch 'lworld' into Clone - Initial commit ------------- Changes: - all: https://git.openjdk.org/valhalla/pull/2588/files - new: https://git.openjdk.org/valhalla/pull/2588/files/5a280a98..dbc626a1 Webrevs: - full: https://webrevs.openjdk.org/?repo=valhalla&pr=2588&range=01 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=2588&range=00-01 Stats: 8202 lines in 295 files changed: 6125 ins; 1080 del; 997 mod Patch: https://git.openjdk.org/valhalla/pull/2588.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2588/head:pull/2588 PR: https://git.openjdk.org/valhalla/pull/2588
