projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.89k stars 2.39k forks source link

[BUG] The @Data annotation ignores a letter-like attribute when generating Getter/Setter methods #2799

Open Mmmm008 opened 3 years ago

Mmmm008 commented 3 years ago

My class declares two properties, as follows: attrName and attrname.The @Data annotation is used on the class.The generated class file contains only the Getter/Setter method for attrName and no related methods for attrname.I had to remove the @Data annotation from the class and write my own Getter/Setter methods.It was a terrible experience. How can we solve it?

janrieke commented 3 years ago

It may be an encoding issue, but those two field names look exactly identical to me.

Mmmm008 commented 3 years ago

I'm terribly sorry.Naming habitually uses camel-case when describing the problem, causing you to look the same.Now I have modified it and I am looking forward to your reply.

janrieke commented 3 years ago

Then it's a duplicate of #2130.