SpEL doesn't work nicely with records #26029
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Given the following
record
and trying to read theaccountId
property in a Thymeleaf template (well actually any property will fail).Then in Thymeleaf trying to read the
accountId
with the followingfails with an exception
I hoped that with implementing #24391 this would also transparently work for SpEL expression, which apparently isn't the case.
Current workaround
Changing the template to use the the
accountId()
method instead of the property makes it work. Nonetheless, it would be nice if this would just work(TM).Spring Version: 5.3.0.RELEASE
Spring Boot: 2.4.0.RC1
JDK: 15.0.1 (AdoptOpenJdk)
The text was updated successfully, but these errors were encountered: