davsclaus opened a new pull request, #24919: URL: https://github.com/apache/camel/pull/24919
## Summary - Fix `@DataField.precision()` default from `0` to `-1` so that BigDecimal fields without explicit precision preserve the original scale from input, instead of crashing with `ArithmeticException` on unmarshal or silently truncating decimals on marshal - Fix `AbstractNumberFormat` to allow `-1` (unset) to pass through instead of clamping to `0`, and skip `DecimalFormat` fraction digit configuration when precision is unset - Wire `@DataField.rounding()` into `BigDecimalFormatFactory` — previously it was only honored when a `pattern` was set (via `BigDecimalPatternFormatFactory`) - Add upgrade guide entry documenting the default change ## Test plan - [x] New `BindyBigDecimalNoPrecisionTest` — 4 tests covering unmarshal/marshal round-trip of fractional BigDecimal without precision - [x] Existing `BindyNumberTest` (2 tests) — no regressions for fixed-length BigDecimal/Double with and without explicit precision - [x] Existing `BindyBigDecimalRoundingUnmarshallTest` — no regression for precision+rounding+pattern path - [x] Full camel-bindy test suite — 226 tests pass, 0 failures _Claude Code on behalf of davsclaus_ -- 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]
