Skip to content

use Locale.ROOT in CharSequenceValue.toEnum case fallback#2568

Merged
paulk-asert merged 1 commit into
apache:masterfrom
netliomax25-code:locale-root-toenum
May 31, 2026
Merged

use Locale.ROOT in CharSequenceValue.toEnum case fallback#2568
paulk-asert merged 1 commit into
apache:masterfrom
netliomax25-code:locale-root-toenum

Conversation

@netliomax25-code
Copy link
Copy Markdown
Contributor

Hit this running JSON binding under a tr_TR default locale. toEnum's case-insensitive fallback uppercases the value with the JVM default locale, so "high" folds to HİGH (dotted I) and Enum.valueOf throws even though HIGH exists. The exact-match path and the lowercase fallback (testStaticToEnumByValueWithDash) work everywhere except locales with special case rules. Use Locale.ROOT.

@testlens-app
Copy link
Copy Markdown

testlens-app Bot commented May 28, 2026

✅ All tests passed ✅

🏷️ Commit: bbcc5eb
▶️ Tests: 59912 executed
⚪️ Checks: 22/22 completed


Learn more about TestLens at testlens.app.

@paulk-asert paulk-asert merged commit 16a26e1 into apache:master May 31, 2026
42 of 73 checks passed
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