RFR: 8262744: Formatter '%g' conversion uses wrong format for BigDecimal rounding up to limits [v2]
Ian Graves
igraves at openjdk.java.net
Wed Apr 7 02:48:00 UTC 2021
> This fixes a bug where the formatting code for `%g` flags incorrectly tries to round `BigDecimal` after determining whether it should be a decimal numeric format or a scientific numeric format. The solution rounds before determining the correct format.
Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
Adding BigDecimal equivalents to tests
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3363/files
- new: https://git.openjdk.java.net/jdk/pull/3363/files/8ec00f8f..cf40421e
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3363&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3363&range=00-01
Stats: 10 lines in 1 file changed: 5 ins; 1 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/3363.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3363/head:pull/3363
PR: https://git.openjdk.java.net/jdk/pull/3363
More information about the core-libs-dev
mailing list