[code-reflection] RFR: Method code model uniquness [v2]
Mourad Abbay
mabbay at openjdk.org
Tue Apr 29 12:10:34 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:
Ensure instances that reflect the same method have the same model
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/415/files
- new: https://git.openjdk.org/babylon/pull/415/files/114c6a59..f88f4e2b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=415&range=01
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=415&range=00-01
Stats: 20 lines in 2 files changed: 11 ins; 0 del; 9 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