-
Notifications
You must be signed in to change notification settings - Fork 288
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
gson导致long类型序列化后类型为double类型 #116
Labels
FAQ
FAQ
Comments
@zhuangjinjin 是独立的long类型参数?还是参数对象中一个long类型的属性? |
@ningyu1 参数对象中一个long类型的属性 |
@zhuangjinjin 反序列化为通用Map示例:
相同问题:google/gson#1084 |
ningyu1
changed the title
gson导致long类型序列化后类型为double类型,导致精度受损
gson导致long类型序列化后类型为double类型,变成科学计数
Oct 15, 2020
ningyu1
changed the title
gson导致long类型序列化后类型为double类型,变成科学计数
gson导致long类型序列化后类型为double类型
Oct 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我dubbo接口暴露的接口参数带有Long类型,通过
jmeter-plugins-for-apache-dubbo
发起测试,而dubbo provider端收到的参数long值和发送端的值不一致,追踪代码发现jmeter-plugins-for-apache-dubbo
采用gson作为序列化工具,而gson在对int和long类型的值做序列化时,会统一把它们当成double处理,导致精度受损问题The text was updated successfully, but these errors were encountered: