Spring tries to instantiate nested annotation with a @Component annotation [SPR-8761] #13404
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Stefan Gybas opened SPR-8761 and commented
When a component-scanned class has a nested annotation with a
@Component
annotation, Spring 3.1 RC1 tries to instantiate the nested annotation. For example:fails with
This works fine with Sping 3.0.6 so it's a regression in 3.1 RC1. When you move the
@Component
annotation from MyComponent to UsesAnnotation it also works with 3.1RC1.Attached is a Maven/Eclipse project with a test that demonstrates the problem.
Affects: 3.1 M2, 3.1 RC1
Attachments:
The text was updated successfully, but these errors were encountered: