Skip to content

Problem with autowiring of "generic Beans" (defined via RootBeanDefinition(s)) [SPR-11250] #15875

@spring-projects-issues

Description

@spring-projects-issues

Burkhard Graves opened SPR-11250 and commented

Hello everybody,

I would like to point out a problem which i already described here and here.

I've attached a simple maven project containing a test which succeeds in Spring-3 but fails in Spring-4. In short: Beans defined ex. via RootBeanDefinition(s) can't be autowired if

<context:annotation-config/>

is used. If using a AutowiredAnnotationBeanPostProcessor only, the problem disappears.

I guess it's due to the changes in AnnotationConfigUtils#registerAnnotationConfigProcessors().

Any ideas, hints?

Regards,
Burkhard


Affects: 4.0 GA

Attachments:

Issue Links:

0 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions