-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
SupportNonPublicField不支持parse基类的private成员 #1494
Comments
这个属于java语言的特性哈。 父类的private 的属性, 在子类是不可见的 |
parser赋值private成员就已经破坏语言特性了吧, 肯定用反射机制去赋值的, |
我觉得基类private字段不一定要支持,protect肯定要支持的,package看情况 |
如果不加判断直接支持父类的private字段,很容易引发新问题吧,毕竟父类的private字段对子类是完全不可见的,比如子类同样可以声明同名的父类的private字段 |
wenshao
added a commit
that referenced
this issue
Oct 6, 2017
wenshao
added a commit
that referenced
this issue
Jul 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
加SupportNonPublicField特性parse到类中普通的private成员没有问题,
但这个类如果有基类, 那么基类的private成员应该也能支持parse吧?
目前的1.2.38版貌似不支持.
The text was updated successfully, but these errors were encountered: