8315946: DecimalFormat and CompactNumberFormat do allow U+FFFE and U+FFFF in the pattern

Reviewed-by: naoto
This commit is contained in:
Justin Lu 2023-09-12 22:59:34 +00:00
parent a9679acd5c
commit dde11551e2
2 changed files with 8 additions and 6 deletions

View file

@ -105,9 +105,11 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* <i>NegativePattern:</i>
* <i>Prefix<sub>opt</sub></i> <i>Number</i> <i>Suffix<sub>opt</sub></i>
* <i>Prefix:</i>
* any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and special characters
* Any characters except the {@linkplain ##special_pattern_character
* special pattern characters}
* <i>Suffix:</i>
* any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and special characters
* Any characters except the {@linkplain ##special_pattern_character
* special pattern characters}
* <i>Number:</i>
* <i>Integer</i> <i>Exponent<sub>opt</sub></i>
* <i>Integer</i> . <i>Fraction</i> <i>Exponent<sub>opt</sub></i>