Skip to content

Commit ca3bdfc

Browse files
author
Justin Lu
committed
8318186: ChoiceFormat inconsistency between applyPattern() and setChoices()
Reviewed-by: naoto
1 parent a520887 commit ca3bdfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ public class ChoiceFormat extends NumberFormat {
235235
/**
236236
* Apply the given pattern to this ChoiceFormat object. The syntax
237237
* for the ChoiceFormat pattern can be seen in the {@linkplain ##patterns
238-
* Patterns} section.
239-
*
238+
* Patterns} section. Unlike {@link #setChoices(double[], String[])} this
239+
* method will throw an {@code IllegalArgumentException} if the {@code
240+
* limits} are not in ascending order.
240241
* @param newPattern a pattern string
241242
* @throws NullPointerException if {@code newPattern}
242243
* is {@code null}

0 commit comments

Comments
 (0)