<i18n dev> Integrated: 8318186: ChoiceFormat inconsistency between applyPattern() and setChoices()

Justin Lu jlu at openjdk.org
Wed Oct 25 17:15:43 UTC 2023


On Mon, 23 Oct 2023 17:16:08 GMT, Justin Lu <jlu at openjdk.org> wrote:

> Please review this PR which clarifies inconsistency between `ChoiceFormat::applyPattern` and `ChoiceFormat::setChoices`.
> 
> A `ChoiceFormat` is composed of limits and formats. `applyPattern()` will throw an exception if limits are not in ascending order, while `setChoices()` will not. This should be clarified in the specification of `applyPattern()`.

This pull request has now been integrated.

Changeset: ca3bdfc0
Author:    Justin Lu <jlu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ca3bdfc0c7a74e23329cd9487279992e345b2efd
Stats:     3 lines in 1 file changed: 1 ins; 0 del; 2 mod

8318186: ChoiceFormat inconsistency between applyPattern() and setChoices()

Reviewed-by: naoto

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

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


More information about the i18n-dev mailing list