Fix FreeMarker tests for JDK21 build

Prior to this commit, some FreeMarker tests would fail when involving
property lookup in a template file, where this bean property is linked
with a method implemented as a default method on an interface.

While I did not manage to reproduce this behavior in an independent test
case, this is most likely related to a change in JDK 21:
https://bugs.openjdk.org/browse/JDK-8071693

This commit changes the template expression to using the default method
directly.
This commit is contained in:
Brian Clozel 2023-05-11 17:10:26 +02:00
parent 0bd0578ff9
commit 07a5d8c91c
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ NAME
${command.name}
AGE
${command.age}
${command.age()}
MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>

View File

@ -7,7 +7,7 @@ NAME
${command.name}
AGE
${command.age}
${command.age()}
MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>