Skip to content

AutowireCapableBeanFactory no longer autowiring since version 3.2.5 [SPR-11230] #15855

Closed
@spring-projects-issues

Description

@spring-projects-issues

Roberto Ruiz opened SPR-11230 and commented

I am trying to create some beans using AutowireCapableBeanFactory to configure preexisting objects, and DefaultListableBeanFactory to register beans as singletons

I create 2 simple beans: bean1 and bean2. Bean2 has an autowired reference to bean1

Till version 3.2.4, bean1 is autowired correctlly into bean2, but it stopped working after version 3.2.5

I attach an small test. Beans are created in spring.factory.configuration.MyConfig.

To execute test, just write "mvn clean test" in command line. Use Maven 3 and Java 7.

You may swap spring version editing pom.xml and changing "spring.version" property. Test will be passed with version 3.2.4.RELEASE, but not with 3.2.5.RELEASE, 3.2.6.RELEASE or 4.0.0.RELEASE


Affects: 3.2.5, 3.2.6, 4.0 GA

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions