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] JSONObject中的Decimal128转为BigDecimal报错 #1300
Comments
用以下方法可以解决,只是感觉不是很优化
另外假如不是返回JSONObject, 是java bean时由于会经过Converter所以不会有问题
@wenshao 请教一下有没有什么优美一点的方案,谢谢了 |
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.27-SNAPSHOT/ |
好的,谢谢,我先试一下 |
@wenshao 我已经测试过没问题,等你发布2.0.27版本我们就可以升级了:+1: |
@ocean23 预计在4月9日或者4月16日发布 |
重现步骤
mongodb的文档为
ImportBatchDetailDO类为
AdvanceApproveHoursAndAmountImportRefinedMO类为
然后运行unit test
相关日志输出
com.alibaba.fastjson2.JSONException: can not cast to java.math.BigDecimal, from class org.bson.types.Decimal128
The text was updated successfully, but these errors were encountered: