On Tue, 9 Dec 2025 11:33:31 GMT, ExE Boss <[email protected]> wrote:

>> I mean a filter method handle may keep other classes alive in addition to 
>> just its types. This is not possible from just checking the types. The vform 
>> method type is sufficient, because the types from the filter method type is 
>> always in one of the indirect layers.
>
> Also, it’s possible for intermediate `MethodHandle`s used as part of 
> `MethodHandle` combinators to refer to types from different class loaders.

It is, but after all, there can be similar resource leak risks from calling 
LambdaMetafactory or other APIs too. We expect AccessDescriptor construction to 
be mostly limited to specific sites.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r2602958025

Reply via email to