Integrated: 8338882: Clarify matching order of MessageFormat subformat factory styles

Justin Lu jlu at openjdk.org
Fri Aug 30 18:31:22 UTC 2024


On Fri, 23 Aug 2024 19:58:08 GMT, Justin Lu <jlu at openjdk.org> wrote:

> Please review this PR which clarifies that the matching order of format styles for MessageFormat sub formats is not guaranteed. A corresponding CSR has also been drafted.
> 
> This is relevant when a locale provides equivalent patterns for multiple format factory styles. For example, a locale X could provide some equivalent date style "xyz" for both a MEDIUM and LONG style. Thus invoking toPattern() could output `date`, `date,medium`, or `date,long` depending on the order of such matching.

This pull request has now been integrated.

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

8338882: Clarify matching order of MessageFormat subformat factory styles

Reviewed-by: naoto

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

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


More information about the core-libs-dev mailing list