Closed
Description
Andy Wilkinson opened SPR-14030 and commented
There's a behaviour difference between 4.2.x and 4.1.x around proxy creation for beans with @Async
methods. When using 4.2.x, early instantiation of the bean makes it ineligible for proxying. It works fine with 4.1.x.
I'll submit a spring-framework-issues
PR with a test that illustrates the problem once I've got the issue number.
Affects: 4.2.5
Reference URL: spring-projects/spring-boot#5366
Issue Links:
- Regression: AsyncAnnotationBeanPostProcessor fails on startup when encountering ambiguous TaskExecutor beans [SPR-13720] #18293 Regression: AsyncAnnotationBeanPostProcessor fails on startup when encountering ambiguous TaskExecutor beans
- AsyncAnnotationBeanPostProcessor could find TaskExecutor by type/name [SPR-13248] #17839 AsyncAnnotationBeanPostProcessor could find TaskExecutor by type/name
- Nested @Async annotations can block indefinitely [SPR-14490] #19059 Nested
@Async
annotations can block indefinitely - Consistently accept "taskExecutor" bean of type Executor (as stated in @EnableAsync's javadoc) [SPR-15566] #20125 Consistently accept "taskExecutor" bean of type Executor (as stated in
@EnableAsync
's javadoc)