Integrated: 8336934: Clean up JavaLangReflectAccess

Chen Liang liach at openjdk.org
Wed Aug 21 01:08:08 UTC 2024


On Tue, 23 Jul 2024 04:10:38 GMT, Chen Liang <liach at openjdk.org> wrote:

> Removed redundant APIs in `JavaLangReflectAccess` and added general warning against using `SharedSecrets`.
> 
> The cleanup in `JavaLangReflectAccess` is:
> - Converted `newConstructor` taking parameters to taking another constructor and a new accessor. The old existing API essentially does a copy and sets an accessor.
> - Removed lots of constructor getters, unused after `newConstructor` cleanup.
> - Removed accessor getter/setters, unused after `newConstructor` cleanup.
> - Removed `leafCopyMethod`. We can already use `getRoot` plus `copyMethod` to achieve the same effect.

This pull request has now been integrated.

Changeset: 88ccbb60
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/88ccbb60919e4523064b0da17184eedcd9efa087
Stats:     186 lines in 6 files changed: 18 ins; 151 del; 17 mod

8336934: Clean up JavaLangReflectAccess

Reviewed-by: rriggs, darcy

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

PR: https://git.openjdk.org/jdk/pull/20290


More information about the core-libs-dev mailing list