[
https://issues.apache.org/jira/browse/FREEMARKER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17748987#comment-17748987
]
Simon edited comment on FREEMARKER-183 at 7/31/23 2:13 AM:
-----------------------------------------------------------
I tried simplifying things (and avoid any potential issues with method
overloading) by changing the implementation to instead just be (in
ClassIntrospector.createClassIntrospectionData):
{code:java}
if (this.exposeFields || isRecordType(clazz)) {
this.addFieldsToClassIntrospectionData(introspData, clazz,
effClassMemberAccessPolicy);
} {code}
However, it still broke calling as a method.
was (Author: JIRAUSER301336):
I tried simplifying things (and avoid any potential issues with methods with
the same name, but with arguments) by changing the implementation to instead
just be (in ClassIntrospector.createClassIntrospectionData):
{code:java}
if (this.exposeFields || isRecordType(clazz)) {
this.addFieldsToClassIntrospectionData(introspData, clazz,
effClassMemberAccessPolicy);
} {code}
However, it still broke calling 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)