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

属性名生成的getter、setter错误 #1857

Closed
zcap opened this issue Sep 10, 2018 · 6 comments
Closed

属性名生成的getter、setter错误 #1857

zcap opened this issue Sep 10, 2018 · 6 comments

Comments

@zcap
Copy link

zcap commented Sep 10, 2018

针对属性名的形式为第一个字母为小写,第二个字母为大写的情况,Lombok所生成的getter、setter错误。
例如:
String aBc;
这个属性正确的getter、setter方法为:
public void setaBc(String aBc){……
public String getaBc(){……
但是Lombok所生成getter、setter方法为:
public void setABc(String aBc){……
public String getABc(String aBc){……
这样的结果会导致使用像Spring时会导致注入失败。。。望修复。

@NekoCaffeine
Copy link

NekoCaffeine commented Sep 10, 2018

Please speak English, thank you.
请用英文谢谢,别给中国的开发者丢人。
这俩注解可以设置字段名前缀。
并不是设计缺陷。

@Maaartinus
Copy link
Contributor

Looks like a duplicate of #1661.

@zcap
Copy link
Author

zcap commented Sep 30, 2018

@NekoCaffeine 不好意思,英语不好。
非常崇拜想你这样英语强大的中国开发者,只是你的鄙视低端开发者、高傲自大性格,像我这样的一般人很不喜欢。
望你生活幸福。

@zcap
Copy link
Author

zcap commented Sep 30, 2018

@Maaartinus 谢谢~

@Maaartinus
Copy link
Contributor

@zcap Note that the majority of people here understands no Chinese and all we can do with your posts is to run them through translate.google.com. Ideally, you'd do it yourself and post the translated text or both, so that not everybody has to do it.

@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
Projects
None yet
Development

No branches or pull requests

5 participants