Overview

Prior to Spring Framework 5.2, some of our annotation utilities would not synthesize an annotation if it was already synthesized or not synthesizable.

It appears that we may have lost this functionality with the introduction of the new MergedAnnotations API. This issue is therefore labeled as a potential regression.

Deliverables

  • [x] Determine if annotations are synthesized unnecessarily and decide where to go from there.

Comment From: sbrannen

Current work on this issue can be viewed here: https://github.com/spring-projects/spring-framework/compare/master...sbrannen:issues/gh-24861-unnecessary-annotation-synthesis

Comment From: sbrannen

Reopening to ensure that annotations with attributes are also not unnecessarily synthesized.

Comment From: sbrannen

Current work on the second attempt for this issue can be viewed here: https://github.com/spring-projects/spring-framework/compare/master...sbrannen:issues/gh-24861-unnecessary-annotation-synthesis-v2