On Thu, 10 Apr 2025 14:43:20 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> Very nice simplification! This seems to take advantage of the fact that, for the restricted method analysis, we only need to look at method reference entries whose owner is a system class -- because we know restricted methods are only defined there. As for native method declarations, we don't need anything -- the `native` flag will be captured directly in the method model. This is an happy coincidence (I hope we won't do something to invalidate that) -- but the simplified code captures better where the moving parts are, I think. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24493#issuecomment-2793996052