You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Richard Liang <ri...@gmail.com> on 2006/02/20 15:27:30 UTC
Proposal: Wrap ICU4J to implement java.text.DecimalFormat enhancement
of Java 5.0
As mentioned in Java 5.0 "New Features":
The DecimalFormat class has been enhanced to format and parse BigDecimal
and BigInteger values without loss of precision. Formatting of such
values is enhanced automatically; parsing into BigDecimal needs to be
enabled using the setParseBigDecimal method.
As I know, ICU4J 3.4 has already support BigDecimal and BigInteger. And
ICU4J is special for internationalization. Shall we just wrap ICU4J 3.4
to implement the new enhancement? Or simply re-implement whole
DecimalFomat/NumberFormat by wrapping ICU4J's classes?
Any comments? Thanks a lot
--
Richard Liang
China Software Development Lab, IBM
Re: Proposal: Wrap ICU4J to implement java.text.DecimalFormat enhancement
of Java 5.0
Posted by Tim Ellison <t....@gmail.com>.
+1 (care to submit a patch?)
Regards,
Tim
Paulex Yang wrote:
> Richard,
>
> I prefer to totally wrap ICU4J as long as Harmony depend on ICU4J.
> First, ICU4J is really good at these things while it is always evolving
> to follow new standard, and its license is friendly to user like
> Harmony, second, it should be not difficult to wrap it, and at last, we
> can get a smaller DecimalFormat/NumberFormat implementation.
>
> Richard Liang wrote:
>> As mentioned in Java 5.0 "New Features":
>>
>> The DecimalFormat class has been enhanced to format and parse
>> BigDecimal and BigInteger values without loss of precision. Formatting
>> of such values is enhanced automatically; parsing into BigDecimal
>> needs to be enabled using the setParseBigDecimal method.
>>
>> As I know, ICU4J 3.4 has already support BigDecimal and BigInteger.
>> And ICU4J is special for internationalization. Shall we just wrap
>> ICU4J 3.4 to implement the new enhancement? Or simply re-implement
>> whole DecimalFomat/NumberFormat by wrapping ICU4J's classes?
>>
>> Any comments? Thanks a lot
>>
>
>
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: Proposal: Wrap ICU4J to implement java.text.DecimalFormat enhancement
of Java 5.0
Posted by Paulex Yang <pa...@gmail.com>.
Richard,
I prefer to totally wrap ICU4J as long as Harmony depend on ICU4J.
First, ICU4J is really good at these things while it is always evolving
to follow new standard, and its license is friendly to user like
Harmony, second, it should be not difficult to wrap it, and at last, we
can get a smaller DecimalFormat/NumberFormat implementation.
Richard Liang wrote:
> As mentioned in Java 5.0 "New Features":
>
> The DecimalFormat class has been enhanced to format and parse
> BigDecimal and BigInteger values without loss of precision. Formatting
> of such values is enhanced automatically; parsing into BigDecimal
> needs to be enabled using the setParseBigDecimal method.
>
> As I know, ICU4J 3.4 has already support BigDecimal and BigInteger.
> And ICU4J is special for internationalization. Shall we just wrap
> ICU4J 3.4 to implement the new enhancement? Or simply re-implement
> whole DecimalFomat/NumberFormat by wrapping ICU4J's classes?
>
> Any comments? Thanks a lot
>
--
Paulex Yang
China Software Development Lab
IBM