Support finding repeatable annotations in AnnotatedTypeMetadata
#31041
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
AnnotatedTypeMetadata
has various methods for finding annotations; however, it currently does not provide explicit support for merged repeatable annotations.Although it is possible to craft a query for repeatable annotations using the
MergedAnnotations
API viagetAnnotations()
, that requires intimate knowledge of theMergedAnnotations
API as well as the structure of repeatable annotations.Furthermore, the bugs reported in #30941 result from the fact that
AnnotationConfigUtils
attempts to use the existing functionality inAnnotatedTypeMetadata
to find repeatable annotations without success.In light of that, we should introduce a
getMergedRepeatableAnnotationAttributes()
method inAnnotatedTypeMetadata
with dedicated support for repeatable annotations.The text was updated successfully, but these errors were encountered: