Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: 3.1.3, 3.1.4, 3.2.1, 3.2.2
-
Fix Version/s: 4.0 M1
-
Component/s: None
-
Last commented by a User:true
Description
The refresh() method of AnnotationConfigApplicationContext is not thread safe anymore.
It works fine in 3.1.2. The regression has bean introduce with the 3.1.3 release.
To reproduce:
-create 2 application contexts
-register the same configuration class
-call the refresh method on application context simultaneously
Now, there is a good chance that both application context share the same beans.
A small Java program is attached to reproduce the issue.
Attachments
Issue Links
- is duplicated by
-
SPR-10936 Use of same @Configuration class across multiple ApplicationContexts is not threadsafe
-
- Resolved
-