Skip to content

SpEL: concurrency issue with StandardEvaluationContext initialization [SPR-7343] #12002

@spring-projects-issues

Description

@spring-projects-issues

Andy Clement opened SPR-7343 and commented

Found by Oleg. When the StandardEvaluationContext was modified from an eager to lazy initialization model, this created an issue with two threads simultaneously triggering the lazy initialization. In initialization of the method resolvers it is possible for one thread to trigger initialization but during that initialization another thread grabs an 'empty list' of method resolvers (because the first thread has only created the list, not populated it yet).

Although only found for method resolvers this probably affects initialization of other pieces, they will be checked as part of fixing this issue.


Affects: 3.0.3

Referenced from: commits 88560fd

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions