Skip to content

SPEL and Enum variable resolution using wrong cachedExecutor [SPR-10452] #15085

@spring-projects-issues

Description

@spring-projects-issues

Martin Frey opened SPR-10452 and commented

The bug is appearing if the Enum used is bound in a variable and the method "values()" is called. I'm currently using Thymeleaf as the templateEngine and I'm not fully certain that this is related. Probably it's possible to reproduce in a plain Java test but i had no time yet.

The screenshot shows the issue.

  • MethodReference$MethodValueRef's target is the enum RiskLevel
  • The executorToUse is resolved to the Method ActionType.values()

The second screenshot shows the thymeleaf code for the iteration.


Affects: 3.2.2

Attachments:

Issue Links:

Referenced from: commits 5e6044c, b9d726f

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