commit | 6739d880930310938cd96441d80f5255bd58cfbd | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Wed Sep 16 17:54:45 2020 +0100 |
committer | Victor Chang <vichang@google.com> | Thu Sep 17 17:19:35 2020 +0100 |
tree | 3c53a529ec14ac34f12a5a9a32be3bf851956dd2 | |
parent | 72155ee3a81343e8da830dfe24f340e6c6b6f224 [diff] |
Fix DecimalFormat.format(bigDecimal, sb, new FieldPosition(NumberFormat.Field.CURRENCY)) The variable name was wrong likely since Android 6.0, and thus the field position is always wrong when formatting BigDecimal or BigInteger > 64-bit. On Android 11, it's likely that ICU4J DecimalFormat implementation has been changed, and throws IllegalArgumentException. Bug: 168304209 Test: atest CtsLibcoreTestCases Change-Id: I36c6e5ad4d0fd89d0b0a9eb359fe8c060562e227