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

2023-10-23 Thread Naoto Sato
On Mon, 23 Oct 2023 17:16:08 GMT, Justin Lu 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 i

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

2023-10-23 Thread Justin Lu
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