[code-reflection] RFR: Method code model uniquness [v4]
Mourad Abbay
mabbay at openjdk.org
Wed Apr 30 01:19:55 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/415/files
- new: https://git.openjdk.org/babylon/pull/415/files/4c2b662d..71f52f60
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=415&range=03
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=415&range=02-03
Stats: 8 lines in 1 file changed: 3 ins; 4 del; 1 mod
Patch: https://git.openjdk.org/babylon/pull/415.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/415/head:pull/415
PR: https://git.openjdk.org/babylon/pull/415
More information about the babylon-dev
mailing list