RFR: 8006090 - Formatter asserts with -esa (original) (raw)
Brian Burkhalter brian.burkhalter at oracle.com
Thu Jan 17 17:36:24 UTC 2013
- Previous message: Request for review: 8004698: Implement Core Reflection for Type Annotations
- Next message: RFR: 8006090 - Formatter asserts with -esa
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The assert occurs in
private Appendable print(StringBuilder sb, Calendar t, char c, Locale l)
due to
assert(width == -1);
not being satisfied. The proposed fix is to remove this assert statement which appears to be vestigial. Regression and compatibility testing did not reveal any failures due to removing this statement.
--- old/src/share/classes/java/util/Formatter.java 2013-01-16 12:22:55.000000000 -0800 +++ new/src/share/classes/java/util/Formatter.java 2013-01-16 12:22:55.000000000 -0800 @@ -3827,7 +3827,6 @@ Locale l) throws IOException {
assert(width == -1); if (sb == null) sb = new StringBuilder(); switch © {
Thanks,
Brian
- Previous message: Request for review: 8004698: Implement Core Reflection for Type Annotations
- Next message: RFR: 8006090 - Formatter asserts with -esa
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]