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

[QUESTION]1.2.83升级至2.0.49后,JSONSerializer代码不兼容 #2450

Closed
lbhkobe opened this issue Apr 16, 2024 · 13 comments · Fixed by #2453
Closed

[QUESTION]1.2.83升级至2.0.49后,JSONSerializer代码不兼容 #2450

lbhkobe opened this issue Apr 16, 2024 · 13 comments · Fixed by #2453
Labels
question Further information is requested
Milestone

Comments

@lbhkobe
Copy link

lbhkobe commented Apr 16, 2024

请描述您的问题

询问有关本项目的使用和其他方面的相关问题。
由于1.2.83安全性问题,升级至2.x版本,但是老代码中调用的JSONSerializer.containsReference、writeReference、println、incrementIdent、decrementIdent方法全部被删除了,希望能有替代方案
image
image

@lbhkobe lbhkobe added the question Further information is requested label Apr 16, 2024
@wenshao wenshao added this to the 2.0.50 milestone Apr 16, 2024
@wenshao
Copy link
Member

wenshao commented Apr 16, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT/
已经支持,请帮忙用2.0.50-SNAPSHOT版本验证

@lbhkobe
Copy link
Author

lbhkobe commented Apr 17, 2024

@wenshao 您好,在com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT中未能找到JSONSerializer这个类,现在项目引的pom是
com.alibaba
fastjson
2.0.49
,代码和底层框架中的路径都是com.alibaba.fastjson, 无法升级至fastjson2
image
image

@wenshao
Copy link
Member

wenshao commented Apr 17, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.50-SNAPSHOT/
抱歉,我搞错了,你依赖下这个兼容包

@lbhkobe
Copy link
Author

lbhkobe commented Apr 18, 2024

@wenshao 您好,已经验证,目前还有JSONSerializer.setContext(Serializer parent,Object object,Object fieldName,int features)方法和SerializerWriter.append(CharSequence csq)这两个方法被删除了
image
image
image

@wenshao wenshao removed the fixed label Apr 19, 2024
@wenshao
Copy link
Member

wenshao commented Apr 20, 2024

自定义序列化类的完整代码可以发出来么?

@wenshao
Copy link
Member

wenshao commented Apr 20, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT/
已经支持,请帮忙更新2.0.50-SNAPSHOT版本验证

@lbhkobe
Copy link
Author

lbhkobe commented Apr 22, 2024

@wenshao 您好,自定义序列化类如下
自定义序列化类-1713749766935.txt

@lbhkobe
Copy link
Author

lbhkobe commented Apr 26, 2024

@wenshao 您好 有时间修复一下吧 谢谢~

@wenshao
Copy link
Member

wenshao commented Apr 26, 2024

@lbhkobe 计划在5.1期间处理哈

@lbhkobe
Copy link
Author

lbhkobe commented May 10, 2024

期待ing

@wenshao
Copy link
Member

wenshao commented May 12, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.50
2.0.50已发布,请帮忙用新版本验证

@wenshao wenshao closed this as completed May 12, 2024
@lbhkobe
Copy link
Author

lbhkobe commented May 13, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.50 2.0.50已发布,请帮忙用新版本验证

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants