[code-reflection] RFR: Method code model uniquness [v4]
Paul Sandoz
psandoz at openjdk.org
Fri May 2 17:21:10 UTC 2025
On Wed, 30 Apr 2025 01:19:55 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> Multiple `Method` objects that represent the same java method, have different code models. This is because every time we call `Class.getMethod` or `Class.getDeclaredMethod` we get a newly created instance. One possible solution is to attach the model to the root `Method` object.
>
> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
>
> Avoid caching Method.codeModel on non-root instances
Marked as reviewed by psandoz (Lead).
-------------
PR Review: https://git.openjdk.org/babylon/pull/415#pullrequestreview-2812530331
More information about the babylon-dev
mailing list