-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VerifyErrors when using SpEL compilation with Thymeleaf when invoking a default method defined in an interface #25706
Comments
@aclement I'm happy to do the actual work on the branches but I'm afraid I need some guidance for this one... |
I will have a look Juergen |
@jhoeller - fixed with tests based on first comment. Needed a check on whether a default method so we would use |
Wow that was quick, thanks Andy! Looks very straightforward, I'll care for the backports all the way down to 4.3.x then. |
Closes spring-projectsgh-25706 (cherry picked from commit c368ce8)
Affects: 5.2.0.RELEASE
I'm working on a Spring Boot project where the SpEL compilation is enabled through a WebMvcConfigurer:
I got a VerifyError when using an expression in some Thymeleaf views, where I try to invoke a method on an object:
Here is the stacktrace for the error:
It appears that the error occurs because the method isEditable is defined this way:
Actually, when the method is defined this way, the expression compilation works nicely:
The text was updated successfully, but these errors were encountered: