AOT bean registrations miss reflection hints on public methods #31293
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
See #31213 for background.
As seen in #31224, our reflection hints predicates were previously considering that
org.springframework.aot.hint.MemberCategory#INTROSPECT_DECLARED_METHODS
was somehow includingorg.springframework.aot.hint.MemberCategory#INTROSPECT_PUBLIC_METHODS
. As documented inMemberCategory
, this is not true because of inherited methods. This means that ifClass#getMethods()
is being called at runtime, it is required to register aINTROSPECT_PUBLIC_METHODS
reflection hint.We are missing such a hint in our core bean arrangement as we can see the following warnings when introspecting types and their inherited methods:
The text was updated successfully, but these errors were encountered: