RFR: 8287908: Use non-cloning reflection methods where acceptable [v3]
Roger Riggs
rriggs at openjdk.org
Wed Sep 7 19:44:45 UTC 2022
On Tue, 14 Jun 2022 19:36:51 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
>> Instead of `Executable.getParameterTypes()` we could use `Executable.getSharedParameterTypes()` in trusted code. Same is applicable for `Executable.getExceptionTypes()`.
>
> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>
> 8287908: Make Executable.getAllGenericParameterTypes() safe
Looks ok to me.
I was expecting another reviewer to chime in.
(BTW, the change isn't so interesting that reviewers have jumped on the chance).
-------------
Marked as reviewed by rriggs (Reviewer).
PR: https://git.openjdk.org/jdk/pull/9064
More information about the core-libs-dev
mailing list