The original RFE proposes to document where IdentityException would now be thrown. In the JDK, only the Cleaner constructor is missing this specification. I also shifted the identity check to method entry; before it was done in the superclass constructors.
------------- Commit messages: - Add identity exception clause to Cleaner Changes: https://git.openjdk.org/valhalla/pull/2297/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2297&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8337056 Stats: 5 lines in 2 files changed: 3 ins; 0 del; 2 mod Patch: https://git.openjdk.org/valhalla/pull/2297.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2297/head:pull/2297 PR: https://git.openjdk.org/valhalla/pull/2297
