Re: RFR 8177552: Compact Number Formatting support

2018-11-28 Thread naoto . sato
Looks good to me. Naoto On 11/28/18 3:46 AM, Nishit Jain wrote: Thanks Naoto, Updated. http://cr.openjdk.java.net/~nishjain/8177552/webrevs/webrev.04/ Regards, Nishit Jain On 27-11-2018 20:55, naoto.s...@oracle.com wrote: Hi Nishit, On 11/26/18 11:11 PM, Nishit Jain wrote: Hi Naoto, On 2

Re: RFR 8177552: Compact Number Formatting support

2018-11-28 Thread Nishit Jain
Thanks Naoto, Updated. http://cr.openjdk.java.net/~nishjain/8177552/webrevs/webrev.04/ Regards, Nishit Jain On 27-11-2018 20:55, naoto.s...@oracle.com wrote: Hi Nishit, On 11/26/18 11:11 PM, Nishit Jain wrote: Hi Naoto, On 26-11-2018 21:01, naoto.s...@oracle.com wrote: Hi Nishit, On 11/26

Re: RFR 8177552: Compact Number Formatting support

2018-11-27 Thread naoto . sato
Hi Nishit, On 11/26/18 11:11 PM, Nishit Jain wrote: Hi Naoto, On 26-11-2018 21:01, naoto.s...@oracle.com wrote: Hi Nishit, On 11/26/18 12:41 AM, Nishit Jain wrote: Hi Naoto, To add to my previous mail comment, the DecimalFormat spec also says that /*"DecimalFormat can be instructed to fo

Re: RFR 8177552: Compact Number Formatting support

2018-11-26 Thread Nishit Jain
Hi Naoto, On 26-11-2018 21:01, naoto.s...@oracle.com wrote: Hi Nishit, On 11/26/18 12:41 AM, Nishit Jain wrote: Hi Naoto, To add to my previous mail comment, the DecimalFormat spec also says that /*"DecimalFormat can be instructed to format and parse scientific notation only via a pattern

Re: RFR 8177552: Compact Number Formatting support

2018-11-26 Thread naoto . sato
Hi Nishit, On 11/26/18 12:41 AM, Nishit Jain wrote: Hi Naoto, To add to my previous mail comment, the DecimalFormat spec also says that /*"DecimalFormat can be instructed to format and parse scientific notation only via a pattern; there is currently no factory method that creates a scientifi

Re: RFR 8177552: Compact Number Formatting support

2018-11-26 Thread Nishit Jain
Hi Naoto, To add to my previous mail comment, the DecimalFormat spec also says that /*"DecimalFormat can be instructed to format and parse scientific notation only via a pattern; there is currently no factory method that creates a scientific notation format. In a pattern, the exponent charact

Re: RFR 8177552: Compact Number Formatting support

2018-11-23 Thread Nishit Jain
Hi Naoto, > I think DecimalFormat and CNF should behave the same, ie. 'E' should be treated as the exponent without a quote. Personally I don't think that the exponential parsing should be supported by CompactNumberFormat, because the objective of compact numbers is to represent numbers in s

Re: RFR 8177552: Compact Number Formatting support

2018-11-21 Thread naoto . sato
Hi Nishit, On 11/21/18 12:53 AM, Nishit Jain wrote: Hi Naoto, Updated the webrev based on suggestions http://cr.openjdk.java.net/~nishjain/8177552/webrevs/webrev.01/ Changes made: - Replaced List with String[] to be added to the the resource bundles Good. - refactored DecimalFormat.subpar

Re: RFR 8177552: Compact Number Formatting support

2018-11-21 Thread Nishit Jain
Hi Naoto, Updated the webrev based on suggestions http://cr.openjdk.java.net/~nishjain/8177552/webrevs/webrev.01/ Changes made: - Replaced List with String[] to be added to the the resource bundles - refactored DecimalFormat.subparse() to be used by the CNF.parse(), to reduce code duplication

Re: RFR 8177552: Compact Number Formatting support

2018-11-19 Thread naoto . sato
Hi Nishit, On 11/18/18 10:29 PM, Nishit Jain wrote: Hi Naoto, Please check my comments inline. On 17-11-2018 04:52, naoto.s...@oracle.com wrote: Hi Nishit, Here are my comments: - CLDRConverter: As the compact pattern no more employs List, can we eliminate stringListEntry/Element, and use

Re: RFR 8177552: Compact Number Formatting support

2018-11-18 Thread Nishit Jain
Hi Naoto, Please check my comments inline. On 17-11-2018 04:52, naoto.s...@oracle.com wrote: Hi Nishit, Here are my comments: - CLDRConverter: As the compact pattern no more employs List, can we eliminate stringListEntry/Element, and use Array equivalent instead? Since the CNF design does n

Re: RFR 8177552: Compact Number Formatting support

2018-11-16 Thread naoto . sato
Hi Nishit, Here are my comments: - CLDRConverter: As the compact pattern no more employs List, can we eliminate stringListEntry/Element, and use Array equivalent instead? - CompactNumberFormat.java Multiple locations: Use StringBuilder instead of StringBuffer. line 268: The link points to N

RFR 8177552: Compact Number Formatting support

2018-11-16 Thread Nishit Jain
Hi, Please review this non trivial feature addition to NumberFormat API. The existing NumberFormat API provides locale based support for formatting and parsing numbers which includes formatting decimal, percent, currency etc, but the support for formatting a number into a human readable or co