We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
输出数据的时候通过JSON.toJSONString(value)实现,升级到fastjson2后由于数据体内有Classloader对象,会导致报错出现stackoverflow(应该是跟classloader对象有关)。
JSON.toJSONString(value)
Classloader
研究了下fastjson会有个特殊处理,当方法返回参数为Classloader.class类型时会跳过该field,就自动不会序列化classloader,业务角度是可以接受的。
Classloader.class
com.alibaba.fastjson.util.TypeUtils#computeGetters(java.lang.Class<?>, com.alibaba.fastjson.annotation.JSONType, java.util.Map<java.lang.String,java.lang.String>, java.util.Map<java.lang.String,java.lang.reflect.Field>, boolean, com.alibaba.fastjson.PropertyNamingStrategy)
if(method.getReturnType() == ClassLoader.class){ continue; }
看了下fastjson2应该是没有这层过滤逻辑,会输出classloader,这个过滤类型的逻辑考虑加回来吗?
The text was updated successfully, but these errors were encountered:
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.57-SNAPSHOT/ 问题修复,请帮忙用2.0.57-SNAPSHOT验证,2.0.57版本预计在4月6日前发布
Sorry, something went wrong.
ignore ClassLoader properties, for issue #3434
dc11c19
https://github.com/alibaba/fastjson2/releases/tag/2.0.57 问题已修复,请用新版本
No branches or pull requests
fastjson升级到fastjson2后write出现异常
输出数据的时候通过
JSON.toJSONString(value)
实现,升级到fastjson2后由于数据体内有Classloader
对象,会导致报错出现stackoverflow(应该是跟classloader对象有关)。研究了下fastjson会有个特殊处理,当方法返回参数为
Classloader.class
类型时会跳过该field,就自动不会序列化classloader,业务角度是可以接受的。看了下fastjson2应该是没有这层过滤逻辑,会输出classloader,这个过滤类型的逻辑考虑加回来吗?
The text was updated successfully, but these errors were encountered: