Skip to content

Conversation

@graalvmbot
Copy link
Collaborator


Automated PR Summary

This PR extends annotation handling support in EspressoExternalResolvedJavaMethod by providing a functional implementation of the hasAnnotations method, enabling the detection of annotation metadata on external methods. It also introduces the necessary interop plumbing through EspressoExternalVMAccess and JVMCIInteropHelper to support querying annotation existence at runtime.

Key Changes:

  • Implements EspressoExternalResolvedJavaMethod.hasAnnotations to query annotation presence via EspressoExternalVMAccess.
  • Adds hasAnnotations(Value) method to EspressoExternalVMAccess, delegating to the JVMCI interop helper.
  • Extends JVMCIInteropHelper with the hasAnnotations interop member and its specialization, supporting annotation checks for methods, fields, and classes via the JVMCI interop boundary.
  • Updates the set of callable interop members to include hasAnnotations.

Jira Issue Resolution:

  • [GR-72026] — Fully addressed
    Extends support for annotation handling in EspressoExternalResolvedJavaMethod, removing a functional gap and unblocking usage in standalone analysis requiring annotation metadata access.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 8, 2026
@graalvmbot graalvmbot merged commit 96651de into master Jan 8, 2026
13 checks passed
@graalvmbot graalvmbot deleted the d-kozak/GR-72026/espresso-jvmci-method-has-annotations branch January 8, 2026 23:04
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