Add support for java records
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Read the base pom.xml and the recordName template example first, then trace the existing Java-object property resolution behavior. Done means {{ myRecord.recordName }} renders without an explicit getter, with the required Java-version implications addressed and regression coverage added.
Written by the indexing model from the issue text.
Description
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.
It's 2024, time to go for java 21+
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jinjava
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Jinjava 3.0 Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·