<i18n dev> Integrated: 8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition
Justin Lu
jlu at openjdk.org
Fri Feb 7 17:11:24 UTC 2025
On Wed, 5 Feb 2025 21:25:56 GMT, Justin Lu <jlu at openjdk.org> wrote:
> Please review this PR which removes _sun.util.locale.ParseStatus_ which is a Locale helper class used for parsing language tags.
>
> Such usages should be replaced by _java.text.ParsePosition_ which has almost 1 to 1 behavior. Note that this cleanup changes the exception message in `Locale.caseFoldLanguageTag(String)` to no longer be prepended by `"Ill formed tag: "`. As such, a CSR is filed to address the compatibility aspect.
This pull request has now been integrated.
Changeset: fb847bb2
Author: Justin Lu <jlu at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fb847bb2afc9e9e164430078c5c403ec6583d50e
Stats: 137 lines in 3 files changed: 12 ins; 78 del; 47 mod
8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition
Reviewed-by: naoto
-------------
PR: https://git.openjdk.org/jdk/pull/23474
More information about the i18n-dev
mailing list