-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable @Getter on a Java record #3548
base: master
Are you sure you want to change the base?
Conversation
This fixes a common complaint in my team that |
We've been debating this. It steers dangerously close to the problem of 'suggesting' very bad programming practices. In basis, 'record'-izing an existing class that has getters is a bad idea. For starters, team OpenJDK themselves haven't done this: There's no benefits to records. Just stay a class. The few benefits records have are either irrelevant for your scenario or can be easily added to your existing class / will soon be:
Even if you disagree with all that (and you very well might, and that is of course fine!), it's not about your specific situation, it's more generally about the idea that lombok supporting And this aint. Which is why we're still debating it and are likely to deny this PR. |
Thanks for the reply and very logical point. I guess my only push back, and I know this is minor, is that it's surprising that it doesn't work - and surprise is something I do my best to avoid. |
I agree with you but could you also convince the authors of JSF to drop the need for it? Or alternative be so kind to make legacy codebase maintainers of a multi million dollar codebase life a little less hellish and support @Getter on Java 17 records? ;) |
No description provided.