You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Announcement] Build projects based on JDK17 #22175
We will build this project based on JDK17 as part of the upcoming major release v8.0.0.
Output from generators (e.g. Java client) is not impacted by this change, which means if the output (e.g. Java clients) defaults to JDK11 (even though it has reached EOL), it will continue to do so.
Not really, I was referring to the Java structures that they added in Java 14, the records, instead of code generated using the typical classes, which would be generated with the records
I don't have the skills to contribute to a project of this nature. If I have them in the future, I could contribute. Thank you very much for the response.
@jpfinne Well, this use case that I have is that I just want to type the response that I receive, which for the purpose for which the Records were created, it's perfect.
But yes, it is definitely not easy to implement to continue to support all existing features.
@jpfinne Builders are fairly straight-forward and works pretty much like the current generateBuilders.mustache. But again, the issue is supporting all existing features and configurations... 😅
Output from generators (e.g. Java client, Kotlin client/server) is not impacted by this change, which means if the output (e.g. Kotlin clients) defaults to JDK11 (even though it has reached EOL), it will continue to do so.
@wing328 you wrote here that records had no plan from the core team, but contributions were welcome. Five Spring steps are merged; #25494 proposes the same option for the java client, one library per PR, default output unchanged. Should it go ahead, or stay Spring-only?
Activity
Radenixlol commentedon Oct 19, 2025
Are there plans in the future to implement an option for generated code to be done in records?
wing328 commentedon Oct 20, 2025
You mean an option like
javaVersionto set the Java version in the auto-generated code?Radenixlol commentedon Oct 20, 2025
Not really, I was referring to the Java structures that they added in Java 14, the records, instead of code generated using the typical classes, which would be generated with the records
wing328 commentedon Oct 20, 2025
Ah ok. No plan from core team to add such feature in the auto-generated Java code at the moment.
Of course we welcome contributions from the community to contribute such feature/option.
Radenixlol commentedon Oct 20, 2025
Okay, I understand.
I don't have the skills to contribute to a project of this nature. If I have them in the future, I could contribute. Thank you very much for the response.
jpfinne commentedon Oct 24, 2025
@Radenixlol records seems nice... until you need inheritance and builders
Radenixlol commentedon Oct 24, 2025
@jpfinne Well, this use case that I have is that I just want to type the response that I receive, which for the purpose for which the Records were created, it's perfect.
Chrimle commentedon Nov 9, 2025
@Radenixlol check out openapi-to-java-records-mustache-templates (shameless ad 😉 ).
But yes, it is definitely not easy to implement to continue to support all existing features.
@jpfinne Builders are fairly straight-forward and works pretty much like the current
generateBuilders.mustache. But again, the issue is supporting all existing features and configurations... 😅urmichm commentedon Feb 24, 2026
Will the Kotlin version be updated? If yes, up to which version?
wing328 commentedon Feb 24, 2026
No.
Output from generators (e.g. Java client, Kotlin client/server) is not impacted by this change, which means if the output (e.g. Kotlin clients) defaults to JDK11 (even though it has reached EOL), it will continue to do so.
wing328 commentedon Mar 4, 2026
According to https://endoflife.date/kotlin, Kotlin 2.2 already reached EOL 2 months ago.
We will gradually migrate the output to use Kotlin 2.3
Sekator778 commentedon Oct 31, 2026
@wing328 you wrote here that records had no plan from the core team, but contributions were welcome. Five Spring steps are merged; #25494 proposes the same option for the
javaclient, one library per PR, default output unchanged. Should it go ahead, or stay Spring-only?