RFR: 8355369: Remove setAccessible usage for setting final fields in java.util.concurrent

Alan Bateman alanb at openjdk.org
Wed Apr 23 15:42:48 UTC 2025


On Wed, 23 Apr 2025 14:06:27 GMT, Chen Liang <liach at openjdk.org> wrote:

> Seems these are used mainly for cloning: is it possible for us to just use `readResolve` to resolve an alternative object?

Potentially AtomicReferenceArray.readObject could be replaced, the others are clone methods.

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

PR Comment: https://git.openjdk.org/jdk/pull/24821#issuecomment-2824721516


More information about the core-libs-dev mailing list