Description
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:
- TestSpring.zip (3.79 kB)
Issue Links:
- Regression: InjectionMetadata cache needs to handle different bean classes per bean name [SPR-11246] #15871 Regression: InjectionMetadata cache needs to handle different bean classes per bean name