-
Notifications
You must be signed in to change notification settings - Fork 20
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
BUG:作为属性的类的属性如果都使用了 @MagicConverter 将会导致反序列结果不正确 #57
Labels
bug
Something isn't working
Comments
哥,这个问题啥时候能修复?我感觉是不是判断的 elementbytes 初始值为负数,后面判断是否大于等于 0 就能解决? |
不好意思老哥,最近公司比较忙,这个晚一点修复 |
已经修复了, 不过你这里既然要自定义序列化,为啥不直接将注解打到list上?而要将list再包一层 |
测试是一个简化的模型,我的这里有多态还有多个属性,没法放外面。而且,我记得没法对 list 做自定义序列化,之前讨论过 #26
|
增加了 handleCollection 配置,可以自定义序列化整个集合。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
测试代码参考合并请求 #56
目前通过调试追踪代码看到,在这种使用情况下,生成的属性 b 的 elementbytes 的值为 0,导致反序列化的时候跳过了对应属性的反序列化,导致反序列化结果里 b 的值为 null
The text was updated successfully, but these errors were encountered: