Skip to content

Fix failed conversion in DoubleLocaleConverter when input is non-Double Number (1.X)#424

Merged
garydgregory merged 1 commit into
apache:1.Xfrom
rootvector2:double-locale-converter-cast-1x
Jul 21, 2026
Merged

Fix failed conversion in DoubleLocaleConverter when input is non-Double Number (1.X)#424
garydgregory merged 1 commit into
apache:1.Xfrom
rootvector2:double-locale-converter-cast-1x

Conversation

@rootvector2

Copy link
Copy Markdown
Contributor

port of #422: DoubleLocaleConverter.parse() only special-cases Long; any other Number subtype passed directly to the converter (e.g. Integer, Float, BigDecimal) is returned as-is and fails in checkConversionResult with ConversionException: Unsupported target type (the 1.X symptom of the same bug — the cast lives in BaseLocaleConverter here rather than in parse). convert any non-Double Number via doubleValue() instead, matching the master fix.

…le Number (1.X)

Signed-off-by: Naveed Khan <dxbnaveed.k@gmail.com>
@garydgregory garydgregory changed the title fix failed conversion in DoubleLocaleConverter when input is non-Double Number (1.X) Fix failed conversion in DoubleLocaleConverter when input is non-Double Number (1.X) Jul 21, 2026
@garydgregory
garydgregory merged commit 6b0e958 into apache:1.X Jul 21, 2026
8 checks passed
garydgregory added a commit that referenced this pull request Jul 21, 2026
Number (1.X) (#424).

- Reduce vertical whitespace
- Sort members
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

Successfully merging this pull request may close these issues.

2 participants