Skip to content
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

Is this Bug:Dubbogo:After serialization, the Java BigDecimal Type becomes a fixed-structure Object? #2772

Open
zhangcunli opened this issue Jan 9, 2025 · 1 comment

Comments

@zhangcunli
Copy link

zhangcunli commented Jan 9, 2025

Environment

  • Server: Dubbo-go, v3.3.0
  • Client: Dubbo-go, v3.2.0-rc2
  • Protocol: Dubbo
  • Registry: zk

Issue description

  1. Java Server, reply struct:
public class Reply {
    private BigDecimal lnt;  //"100.5494959494355"
}

2.dubbo client: generic call, the response become:

{
    "lnt": {
        "Value": "100.5494959494355"
    }
}
  1. Is this a feature or bug?It is very confusing.
    Thans!

  2. Default: Fastjson converted the double type into BigDecimal.

@chickenlj
Copy link
Contributor

Please check the BigDecimal support described here apache/dubbo-go-hessian2#89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants