Skip to content

use Locale.ROOT in CharSequenceValue.toEnum#2570

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

use Locale.ROOT in CharSequenceValue.toEnum#2570
paulk-asert merged 1 commit into
apache:masterfrom
netliomax25-code:json-enum-locale-root

Conversation

@netliomax25-code
Copy link
Copy Markdown
Contributor

Noticed the fallback in CharSequenceValue.toEnum uppercases the token text with the JVM default locale before matching the enum constant. Under tr_TR a value like id folds to İD, so Enum.valueOf throws and a valid JSON value never resolves. Fold with Locale.ROOT so the lookup stays locale-independent.

@testlens-app
Copy link
Copy Markdown

testlens-app Bot commented May 30, 2026

✅ All tests passed ✅

🏷️ Commit: cc66aa4
▶️ Tests: 99894 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
23 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