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

About setter and the JavaBean standard #1023

Closed
henry1992007 opened this issue Feb 12, 2016 · 2 comments
Closed

About setter and the JavaBean standard #1023

henry1992007 opened this issue Feb 12, 2016 · 2 comments

Comments

@henry1992007
Copy link

Recently I encountered a problem when using @getter function.

I have a field named "pId" in my java bean but i cannot get the origin data after the bean is deserialized.

so i removed the @getter annotation and used the defaults getters that are generated by the intellij idea instead, which is named "setpId", problem solved.

which means the deserializer could not find the correct setter for the field "pId". i supposed lombok generated a setter named "setPId".

According to the java bean standard, if the second letter of the name is a capital, the first letter should remain what it is in getters and setters.

i'll be grateful if you help to take a look at the problem.
thanks again for your contribution.

@askoning
Copy link
Collaborator

As described in #757 and a lot of related issues, this (unfortunately) won't be changed.

@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