Vivien HENRIET opened SPR-10307 and commented
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.
Affects: 3.1.3, 3.1.4, 3.2.1, 3.2.2
Attachments:
Issue Links:
Referenced from: commits 30b21a9, 6405551, fffeaee
0 votes, 6 watchers
Vivien HENRIET opened SPR-10307 and commented
The
refresh()method ofAnnotationConfigApplicationContextis 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.
Affects: 3.1.3, 3.1.4, 3.2.1, 3.2.2
Attachments:
Issue Links:
@Configurationclass across multiple ApplicationContexts is not threadsafe ("is duplicated by")@Beanmethods behave like prototypes in a Spring DM environment@ConfigurationbeansReferenced from: commits 30b21a9, 6405551, fffeaee
0 votes, 6 watchers