On Sun, May 9, 2010 at 10:56 PM, Philippe Van Dyck <[email protected]> wrote:
> Hi all,
> I use a lot of BigDecimal (it is the base to my Money value).
> Did you push your changes to the code repository yet ?
> Are you sure you could handle it in a compatible way ?

Pretty sure. There are tests for it as well.

Since the Object coming into the fromJSON() method in NumberType will
vary from either an Integer, Double or String depending on the size of
the number, I just put in a

new BigDecimal( "" + json )

which deals with it correctly.

It has been committed if you would like to try it out.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to