Do not synchronize ApplicationContext creation in the TestContext framework [SPR-10536] #15166
Closed as not planned
ApplicationContext creation in the TestContext framework [SPR-10536] #15166
James Shaw opened SPR-10536 and commented
DefaultCacheAwareContextLoaderDelegate.loadContext()synchronizes access to theContextCachewhich means thatApplicationContextscannot be initialized in parallel.I tried removing the
ContextCachealtogether, but this uncovered a deadlock inAbstractBeanFactory. Trying to fix that with a shared lock caused some race condition to autowire anullEnvironmentinto a@Configurationclass' field.Affects: 3.2.2
Issue Links:
@DirtiesContext1 votes, 3 watchers