Skip to content

Commit b840b13

Browse files
author
Justin Lu
committed
8338882: Clarify matching order of MessageFormat subformat factory styles
Reviewed-by: naoto
1 parent 25e03b5 commit b840b13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/java.base/share/classes/java/text/MessageFormat.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,10 @@ private void applyPatternImpl(String pattern) {
692692
* represents the current state of this {@code MessageFormat}}
693693
*
694694
* The string is constructed from internal information and therefore
695-
* does not necessarily equal the previously applied pattern.
695+
* does not necessarily equal the previously applied pattern. The order of
696+
* {@code FormatStyle} matching is not guaranteed. That is, a {@code
697+
* FormatStyle} produced may not be equivalent to the corresponding style passed,
698+
* in the instance that multiple styles are equivalent.
696699
*
697700
* @implSpec The implementation in {@link MessageFormat} returns a
698701
* string that, when passed to a {@code MessageFormat()} constructor

0 commit comments

Comments
 (0)