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
[BUG] When the first letter of an attribute is lowercase and the second letter is uppercase, the getter and setter methods generated by Lombok are incorrect #2149
Comments
Hi @lw5946 I'd really like you provide some evidence of your saying. Because I just (discovered and) read the JavaBeans Specification 1.01 available on Oracle's website: https://www.oracle.com/technetwork/articles/javaee/spec-136004.html Particularly this chapter 8.8 but there's nothing related to this exception (except what I have put in bold but it's about all-uppercase properties).
|
@maxxyme
}` eclipse Generate getter, setter
} test The getter and setter generated by the two have character case differences, and if you use jackson serialization into json, there is a problem of json's name case. |
IMHO duplicate of #927. @lw5946 This is an old news.... the Javabeans crap is inconsistent in itself and what Lombok implements is not optimal. IIRC the team knows it and would accept a PR, but not change it themselves - as it's a lot of work with backwards incompatible changes for switching from one interpretation to a more frequently used one. Too little gain. Search for Javabeans in this repo if you want to know more. |
Oh, well, thank you. |
So, why not add an annotation attribute such as @getter(convention=NamingConvention.Eclipse) |
lombok's behaviour is intentional. We will not change it and we will not be putting in a convention toggle. Not worth the effort or the maintenance burden. |
Duplicate of #2693 |
In the JavaBean specification, getter and setter methods of
pDept
attributes aregetpDetp
andsetpDept
. But the getter and setter methods generated by Lombok aregetPDetp
andsetPDept
.I used version 1.16.14, but I didn't see a new version fixing the bug in changelog.
The text was updated successfully, but these errors were encountered: