-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
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:
- EnumListFrontendCode.jpg (31.42 kB)
- WrongTargetEnumInSPEL322.jpg (219.04 kB)
Issue Links:
- Cached MethodExecutor invokes wrong method [SPR-10657] #15285 Cached MethodExecutor invokes wrong method
- MethodResolver results are cached in SpEL expressions, so changing the context at evaluation time has no effect [SPR-9495] #14129 MethodResolver results are cached in SpEL expressions, so changing the context at evaluation time has no effect
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug