[code-reflection] RFR: Method code model uniquness [v4]
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu May 1 08:36:58 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 mcimadamore (Reviewer).
-------------
PR Review: https://git.openjdk.org/babylon/pull/415#pullrequestreview-2809361456
More information about the babylon-dev
mailing list