public record MyRecord(String recordName) {
/**
* without explicit getter Jinjava doesn't see it
*/
public String getRecordName() {
return recordName;
}
}
The following template won't be correctly filled without the getter, although it's not needed for records
{{ myRecord.recordName }}
I tried to contribute, but it turned out, that the java version in the base pom.xml is still 8. https://github.com/HubSpot/basepom/blob/master/pom.xml#L17. I think such change must be done by the core maintainers, who know all of the possible implications.
The following template won't be correctly filled without the getter, although it's not needed for records
I tried to contribute, but it turned out, that the java version in the base pom.xml is still 8. https://github.com/HubSpot/basepom/blob/master/pom.xml#L17. I think such change must be done by the core maintainers, who know all of the possible implications.
It's 2024, time to go for java 21+