8260221: java.util.Formatter throws wrong exception for mismatched flags in %% conversion

Reviewed-by: smarks
This commit is contained in:
Ian Graves 2021-02-12 16:06:39 +00:00 committed by Stuart Marks
parent 6475d4774f
commit 350303d4f0

View file

@ -1832,7 +1832,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
*
* <p> The {@code '-'} flag defined for <a href="#dFlags">General
* conversions</a> applies. If any other flags are provided, then a
* {@link FormatFlagsConversionMismatchException} will be thrown.
* {@link IllegalFormatFlagsException } will be thrown.
*
* <p> The precision is not applicable. If the precision is specified an
* {@link IllegalFormatPrecisionException} will be thrown.