[
https://issues.apache.org/jira/browse/FREEMARKER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17748987#comment-17748987
]
Simon commented on FREEMARKER-183:
----------------------------------
I tried simplifying things (and avoiding any potential issue with a method with
the same name, but with arguments) by changing the implementation to instead
just be:
{code:java}
if (this.exposeFields || isRecordType(clazz)) {
this.addFieldsToClassIntrospectionData(introspData, clazz,
effClassMemberAccessPolicy);
} {code}
However, I still couldn't call as a method.
> Add support for Java records
> ----------------------------
>
> Key: FREEMARKER-183
> URL: https://issues.apache.org/jira/browse/FREEMARKER-183
> Project: Apache Freemarker
> Issue Type: Task
> Reporter: Dániel Dékány
> Assignee: Dániel Dékány
> Priority: Major
>
> Currently we don't support records (JEP 395), which was finalized in Java 16.
> Users can extend {{DefaultObjectWrapper}} for that of course, but it should
> be supported out of the box.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)