8204229: Formatter and String.format ignore the width with the percent modifier (%5%)

Reviewed-by: jlaskey
This commit is contained in:
Xueming Shen 2018-06-08 10:09:40 -07:00
parent acdef788f0
commit f56c0b79d8
23 changed files with 183 additions and 3 deletions

View file

@ -2914,7 +2914,7 @@ public final class Formatter implements Closeable, Flushable {
a.append(System.lineSeparator());
break;
case Conversion.PERCENT_SIGN:
a.append('%');
print("%", l);
break;
default:
assert false;