Re: RFR: 8333456: CompactNumberFormat integer parsing fails when string has no suffix [v2]

2024-06-05 Thread Naoto Sato
On Tue, 4 Jun 2024 20:43:09 GMT, Justin Lu wrote: >> Please review this PR which handles incorrect CompactNumberFormat integer >> only parsing when there is no suffix. >> >> See the following snippet, >> >> >> var fmt = NumberFormat.getCompactNumberInstance(Locale.US, >> NumberFormat.Style.S

Re: RFR: 8333456: CompactNumberFormat integer parsing fails when string has no suffix [v2]

2024-06-04 Thread Justin Lu
> Please review this PR which handles incorrect CompactNumberFormat integer > only parsing when there is no suffix. > > See the following snippet, > > > var fmt = NumberFormat.getCompactNumberInstance(Locale.US, > NumberFormat.Style.SHORT) > fmt.setParseIntegerOnly(true) > fmt.parse("5K") // r

Re: RFR: 8333456: CompactNumberFormat integer parsing fails when string has no suffix

2024-06-04 Thread Naoto Sato
On Mon, 3 Jun 2024 22:32:54 GMT, Justin Lu wrote: > Please review this PR which handles incorrect CompactNumberFormat integer > only parsing when there is no suffix. > > See the following snippet, > > > var fmt = NumberFormat.getCompactNumberInstance(Locale.US, > NumberFormat.Style.SHORT) >

RFR: 8333456: CompactNumberFormat integer parsing fails when string has no suffix

2024-06-03 Thread Justin Lu
Please review this PR which handles incorrect CompactNumberFormat integer only parsing when there is no suffix. See the following snippet, var fmt = NumberFormat.getCompactNumberInstance(Locale.US, NumberFormat.Style.SHORT) fmt.setParseIntegerOnly(true) fmt.parse("5K") // returns 5000 fmt.pars