RFR: 8353917: jnativescan: Simplify ClassResolver [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu Apr 10 14:51:26 UTC 2025
On Thu, 10 Apr 2025 14:43:20 GMT, Maurizio Cimadamore <mcimadamore at 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
More information about the core-libs-dev
mailing list