shubhamk0205 opened a new pull request, #403: URL: https://github.com/apache/dubbo-go-hessian2/pull/403
**What this PR does**: Adds a regression test for #305. A Java object with a `Double` field set to `null` used to fail with `decDouble parse double wrong tag: 78-0x4e`. On master it no longer errors, so this just locks that in: - `test_hessian`: new `DoubleHolder` model and `customReplyTypedDoubleHasNull` reply - `TestDecodeDoubleHasNull`: decodes it into a struct with a `float64` field (stays `0`) and a `*float64` field (stays `nil`) It follows the existing `TestDecodeIntegerHasNull` test. **Which issue(s) this PR fixes**: Fixes #305 **Special notes for your reviewer**: Test-only, no behaviour change. **How I tested**: JDK 8 + Go 1.25 (same as CI): `mvn test -f test_hessian/pom.xml`, `go test ./...`, gofmt, imports-formatter and golangci-lint v2.4.0 all pass. I also checked the new test fails if the expected value is wrong. **Does this PR introduce a user-facing change?**: ```release-note NONE ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
