-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@Data注解时生成的getter,setter方法在有些属性会有问题!!! #1861
Comments
Translating that into English with the help of Google translator, it seems to be that:
Seems to be another duplicate of #757, #1453, #1454, #1496 and #1661 and possibly others. |
public static void main(String[] args) {
|
Ok, lets translate that: Well, there is no class I see that your suggestion is to use just Further duplicates: #504, #1023, #1129, #1225, #1030. So, please:
|
Oh, very relevant to this: https://stackoverflow.com/a/49348966/540552 |
In the Google Groups thread, Reinier wrote
but given that how often it comes, I'd suggest to reconsider. @rzwitserloot Would you accept a PR introducing a config key, ensuring backwards compatibility and providing the alternate behavior? If so, then someone interested in the crapspec could make the PR and we could get rid of this coming up again and again. |
Ok, thank you, you are correct, I have learned a lot, thank you very much! |
@Maaartinus No, but we would accept a pull request that does change the behavior and breaks backwards compatibility. Counting the number of issues, we made a mistake. We would most likely use the 2.x release to introduce this change. We do not want to introduce config keys because that clutters up the code, resulting in more code to maintain than if we make a clean break. For us, the best pull request is already squashed to a single changeset, and includes also the modified test code. Please keep in mind that this might also affect other code like |
@qingqingmanong 你好,请问你的问题解决了吗? |
the best way to resolve it using "overload" |
I am facing the same issue. I understand the compatibility issue. But recommend to re-consider since this has affected a lot many users |
Then do something instead of posting those +1's. The maintainers already stated over a year ago that they'd accept a PR that changes this. |
Duplicate of #2693 |
eg:private String cMc;
@DaTa时:public String getCMc(){};
但是idea自动生成的是public String getcMc(){};
造成的实质性后果:
SpringMVC处理@DaTa注解时,返回给前端时cmc
SpringMVC处理idea生成的时,返回给前端的是cMc
导致前端拿这个返回字段给后端时,后端不能接收cmc的值。
The text was updated successfully, but these errors were encountered: