<i18n dev> Integrated: 8369590: LocaleEnhanceTest has incorrectly passing test case

Justin Lu jlu at openjdk.org
Fri Oct 17 16:22:20 UTC 2025


On Mon, 13 Oct 2025 20:55:45 GMT, Justin Lu <jlu at openjdk.org> wrote:

> This PR corrects _test/jdk/java/util/Locale/LocaleEnhanceTest.java_, which has two test cases under `testBuilderSetLanguageTag()` which accidentally pass. One checks that Locale.setLanguageTag(String) throws ILE for duplicate extensions and the other for duplicate U-extension keys. The test cases are updated to actually test the provided code. When the test cases are fixed, they now fail. They should instead be updated to check that the duplicates are ignored.

This pull request has now been integrated.

Changeset: 1e5e17a1
Author:    Justin Lu <jlu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1e5e17a10a001c189f6ab19f61efca2d08cb0301
Stats:     654 lines in 1 file changed: 56 ins; 169 del; 429 mod

8369590: LocaleEnhanceTest has incorrectly passing test case

Reviewed-by: naoto

-------------

PR: https://git.openjdk.org/jdk/pull/27775


More information about the i18n-dev mailing list