-
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
1.2.83 版本使用 JSON.parseObject 方法转换字符串时,会报OOM #4481
Comments
[""]格式不太对,[{}]这样才对,TypeReference要指定泛型吧。 |
格式不对你可以报错,报格式不正确。而你报个OOM?你觉得合理吗? |
这样一行代码,怎么可能导致OOM!TypeReference不指定泛型,连编译都过不了,就别说运行了。 |
你试试下面这个,确定是比较有问题的。
|
2.0.41 已修复 |
fastjson 版本 :
com.alibaba
fastjson
1.2.83
复现bug代码如下:
List<Map<String,Object>> map = JSON.parseObject("[""]",new TypeReference<>(){});
The text was updated successfully, but these errors were encountered: