8338690: CompactNumberInstance.format incorrectly formats some numbers (few vs many)

Reviewed-by: joehw, rriggs, jlu
This commit is contained in:
Naoto Sato 2024-08-27 15:34:50 +00:00
parent 1ff5f8d65c
commit fa4ff78bd4
3 changed files with 73 additions and 48 deletions

View file

@ -1799,6 +1799,14 @@ public class DecimalFormat extends NumberFormat {
}
}
/**
* {@return the {@code DigitList} used by this {@code DecimalFormat} instance}
* Declared as package-private, intended for {@code CompactNumberFormat}.
*/
DigitList getDigitList() {
return digitList;
}
// ======== End fast-path formatting logic for double =========================
/**