Skip to content

Commit 350303d

Browse files
Ian GravesStuart Marks
Ian Graves
authored and
Stuart Marks
committed
8260221: java.util.Formatter throws wrong exception for mismatched flags in %% conversion
Reviewed-by: smarks
1 parent 6475d47 commit 350303d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/util/Formatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@
18321832
*
18331833
* <p> The {@code '-'} flag defined for <a href="#dFlags">General
18341834
* conversions</a> applies. If any other flags are provided, then a
1835-
* {@link FormatFlagsConversionMismatchException} will be thrown.
1835+
* {@link IllegalFormatFlagsException } will be thrown.
18361836
*
18371837
* <p> The precision is not applicable. If the precision is specified an
18381838
* {@link IllegalFormatPrecisionException} will be thrown.

0 commit comments

Comments
 (0)