Meta-annotations are unnecessarily synthesized in MergedAnotations #28704
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: regression
A bug that is also a regression
Milestone
While analyzing the claim in #28702, I discovered that meta-annotations are unnecessarily synthesized when attempting to synthesize a
MergedAnnotation
retrieved via theMergedAnnotations.from(AnnotatedElement, ...).get(<annotationType>)
API.This is a regression in our merged annotation support introduced when the
MergedAnnotations
API replaced our previous support, and the source of the bug is the logic inTypeMappedAnnotation#createSynthesized()
.In theory, I could have detected this regression earlier when I had to change a test in
BootstrapUtilsTests
(see commit ce87285), since@BootstrapWith
should never have been synthesized; however, I overlooked that detail at the time.The text was updated successfully, but these errors were encountered: