jockercheng91 opened a new issue, #15670:
URL: https://github.com/apache/dubbo/issues/15670

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo3.3.0 ,JDK 1.8 ,MacOs15.1
   
   ### Steps to reproduce this issue
   
       @GetMapping("/full_user")
       public User getFullUser(@RequestHeader(value = "X-Dubbo-Proxy", required 
= false) String proxy) {
           long start = System.currentTimeMillis();
           User user = 
userService.getFullTextUser().setCtoPMillis(System.currentTimeMillis() - start);
           User objectUser = User.createFullTestUser();
           System.err.println(user);
           System.out.println(objectUser);
           User.RpcValidationResult rpcValidationResult = 
user.validateRpcTransmission(objectUser);
           System.out.println("============>" + rpcValidationResult);
           return user;
       }
   
   测试通过rpc 调用获取user(生产者也是通过createFullTestUser()初始化一个对象返回),和本地初始化的内容一致。
       default User getFullTextUser() {
           User fullTestUser = User.createFullTestUser();
           System.out.println(fullTestUser);
           return fullTestUser;
       }
   
   
   
   ### What you expected to happen
   
   结果返回基础类型单精度数值对不上:===>RpCValidationResult{success=false,message='RPC传输存在差异,
   不一致的字段:shortValue:
   7864 != 327,floatValue: 3.6893488E19 != 3.14
   
   ### Anything else
   
   看起来不像是精度丢失的问题,值偏差还较大
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to