Skip to content
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

Expanding the problem mentioned in #1278 (with generating getters & setters for fields that contains one lowercase letter in front followed by capital letter) #1593

Closed
amseager opened this issue Feb 27, 2018 · 1 comment

Comments

@amseager
Copy link

Connected issue that was closed too early: #1278

This problem occurs not only with 'x' in front of fields and there is nothing wrong with lombok intellij plugin.

Every field starting with one lowercase letter causes jackson serializing problems. F.e. fields 'aTest', 'bTest', 'cTest' etc. will all cause this bug.

It happens because for that type of fields Lombok is generating getters & setters with wrong names.
model.getXMyField() - should be model.getxMyField(). Same with setter.
Looks weird, but Jackson can only understand that type of names while converting json into object and vise versa.
If you try to generate G&S in IDEA and Eclipse the result will be correct (in this case, model.getxMyField()).

@rzwitserloot
Copy link
Collaborator

Duplicate of #2693

@rzwitserloot rzwitserloot marked this as a duplicate of #2693 Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants