Skip to content

[LANG-1823] LocaleUtils.toLocale cannot parse valid JDK Locale string containing '#' #1630

Merged
garydgregory merged 23 commits intoapache:masterfrom
garydgregory:bugfix/LANG-1823
Apr 30, 2026
Merged

[LANG-1823] LocaleUtils.toLocale cannot parse valid JDK Locale string containing '#' #1630
garydgregory merged 23 commits intoapache:masterfrom
garydgregory:bugfix/LANG-1823

Conversation

@garydgregory
Copy link
Copy Markdown
Member

[LANG-1823] LocaleUtils.toLocale cannot parse valid JDK Locale string
containing '#' (e.g., from Locale.getAvailableLocales())

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Read the ASF Generative Tooling Guidance if you use Artificial Intelligence (AI).
  • Run a successful build using the default Maven goal with mvn; that's mvn on the command line by itself.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible, but it is a best practice.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body. Note that a maintainer may squash commits during the merge process.

containing '#' (e.g., from Locale.getAvailableLocales())

-[LANG-879]
LocaleUtils test fails with new Locale "ja_JP_JP_#u-ca-japanese" of JDK7
- See https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Locale.html#special_cases_constructor
@garydgregory garydgregory merged commit 3df7f44 into apache:master Apr 30, 2026
20 checks passed
@garydgregory garydgregory deleted the bugfix/LANG-1823 branch April 30, 2026 12:19
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.

1 participant