Skip to content

ThreadPoolTaskExecutor does not allow for decorating Runnables [SPR-13930] #18502

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-13930 and commented

The fact that ThreadPoolTaskExecutor.initializeExecutor() is protected makes it a public extension point, and it returns an Executor, so you might expect that overriding it will result in the return value being used at run time. In fact it is not because the ThreadPoolTaskExecutor does (though its parent class) set a field called "executor" but then never uses it, preferring instead to use its own more specialized ThreadPoolExecutor.


Affects: 4.2.4

Referenced from: commits 25be5e0

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions