context:annotation-config skips classes using inner classes in 2.5.1 [SPR-4350] #9029
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
Martin Vanek opened SPR-4350 and commented
i've tried to upgrade from 2.5 to 2.5.1 and i've found that context:annotation-config mechanism is badly broken. From debug log, i can read that classes were found as candidates to be scanned for annotation configuration, but they are never configured, although they have correct annotations (
@Component
).I've found "bad reason" why spring skips component. Mechanism skips class containing or using in any method code non static inner class (bytecode contains reference to that inner class). Anonymous inner classes are OK.
Affects: 2.5.1
Issue Links:
The text was updated successfully, but these errors were encountered: