As part of #28967, we've revisited our annotation support and more generally which hints are registered for annotations.
Since its inception, the RuntimeHintsAgent
never instrumented reflection calls related to annotations, like getAnnotations()
. It always considered that allowing introspection on a type/method/field would include the availability of annotations present there. GraalVM 22.x now honors this behavior, so there is nothing to change in the agent instrumentation.
In b03d0479e4, many hints registrations were dropped, including the JakartaAnnotationsRuntimeHints
. This registrar is being used not for pure reflection usage, but for detection in QualifierAnnotationAutowireCandidateResolver
. It should be reinstated as well.