-
Notifications
You must be signed in to change notification settings - Fork 495
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
Set类型集合无法正常反序列化 #555
Comments
麻烦提供下完整的case,以供复现 |
问题没重现,需要帮助提供重现问题的testcase |
import com.alibaba.fastjson2.JSON; public class Test {
} |
可以直接拿这整段测试(不好意思,没找到怎么上传文件),简单的Set集合对象是可以转换的,但是在复杂对象中,无法正常转换,demo中我测试了两个情况,前者是有Set标识,无法正常转换,后者无Set标识,可以正常转换(注释掉的ss字符串) |
wenshao
added a commit
that referenced
this issue
Jul 14, 2022
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.10-SNAPSHOT/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
对象中存在Set类型集合时,序列化时会添加Set标识,但无法正常反序列化获取到数据
(实测:手动移除掉Set标识后,可正常反序列化)
版本: 在>2.0.4版本均存在该问题(包括最新发布的2.0.9版本)
The text was updated successfully, but these errors were encountered: