Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

This PR consists of two related changes, ensuring that method handle lookups are handled correctly on Native Image:

  • First, the agent is updated to register the declaring class of a resolved method handle instead of the class used in the query. This is necessary since registered elements are resolved by Native Image following the rules of the reflection API, which can miss valid registrations if that is not the case.
  • Then, runtime method handle resolution is updated to take into account methods defined in the interfaces of the queried class, which wasn't the case before.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 1, 2025
@graalvmbot graalvmbot merged commit 1d508dd into master Dec 1, 2025
13 checks passed
@graalvmbot graalvmbot deleted the lottet/GR-46870-mh-interface-lookup branch December 1, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants