RFR: 8287908: Use non-cloning reflection methods where acceptable [v2]
Сергей Цыпанов
duke at openjdk.org
Thu Sep 8 06:56:47 UTC 2022
On Wed, 7 Sep 2022 19:33:41 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> You can probably appreciate how hard it is to keep track of what's a copy (and needs to be copied) and what's not through several levels of APIs. From a security perspective, its better to spend a little extra at runtime, than to run the risk of allowing an internal data structure to be corrupted.
>
> To ensure the shared types are not too easily exposed, move 317: to inside the `if (realParamData)`.
> That's also the only scope in which it is used.
But `nonGenericParamTypes` is used in `else` block as well, so should I call `getSharedParameterTypes()` twice?
-------------
PR: https://git.openjdk.org/jdk/pull/9064
More information about the core-libs-dev
mailing list