On Wed, 7 Sep 2022 19:33:41 GMT, Roger Riggs <rri...@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

Reply via email to