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

[BUG] lose getter/setter method after compile #2603

Closed
wh1zper opened this issue Oct 10, 2020 · 2 comments
Closed

[BUG] lose getter/setter method after compile #2603

wh1zper opened this issue Oct 10, 2020 · 2 comments

Comments

@wh1zper
Copy link

wh1zper commented Oct 10, 2020

Describe the bug
using @getter or @Setter annotation, when similary but not same word defined as field in Java class, it loses some getter/setter methods after compile

To Reproduce

@Setter
@Getter
public class Test {

    private JSONObject jCReturnedData;

    private JSONObject jcreturnedData;

    private String mQType;

    private String mqtype;
}

8a8f5ce9-9e2b-4088-9501-fb4ff2b5d93a

after compiled, it loses the getter and setter methods of field of 'jcreturnedData' and 'mqtype'

Expected behavior
should retain all the getter/setter methods

Version info (please complete the following information):

  • Lombok version 1.18.14
  • Java version 1.8.0_101
@Rawi01
Copy link
Collaborator

Rawi01 commented Oct 10, 2020

This is a duplicate of #2590. The problem is that lombok searches for existing methods without case sensitivity.

@rzwitserloot
Copy link
Collaborator

Duplicate of #2130: We won't fix this, for reasons, see that issue.

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