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

_DIFF()时getDeclaredFields()获取不到父类字段问题 #99

Closed
kenekai opened this issue Mar 21, 2024 · 2 comments · Fixed by #100
Closed

_DIFF()时getDeclaredFields()获取不到父类字段问题 #99

kenekai opened this issue Mar 21, 2024 · 2 comments · Fixed by #100
Assignees
Labels
bug Something isn't working

Comments

@kenekai
Copy link

kenekai commented Mar 21, 2024

您好
在两个对象DIFF时,如果该对象的类有父类,父类的属性并不会参与DIFF。
建议:cn.hutool.core.util.ReflectUtil

@qqxx6661
Copy link
Owner

感谢反馈,我尽快修复

@qqxx6661 qqxx6661 added the bug Something isn't working label Mar 21, 2024
@qqxx6661 qqxx6661 self-assigned this Mar 31, 2024
@qqxx6661 qqxx6661 linked a pull request Apr 6, 2024 that will close this issue
@qqxx6661
Copy link
Owner

qqxx6661 commented Apr 6, 2024

v1.6.2 支持了父类字段,参考了cn.hutool.core.util.ReflectUtil,不过自己手工实现了下,不引入hutool防止依赖过重。

@qqxx6661 qqxx6661 closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants