Hi Greg,
you have reason, the original post has still not been accepted by our
mailing lists ... I put here just for reference:

>Hi,
>
>I've been developing using Pivot 2.0 for about 3 weeks now.
>In a serialize-deserialize test using my bean class with some BigDecimal
fields, I've found an issue where JSONSerializer would serialize them
without problems but throws an IllegalArgumentException "Unable to coerce
double to BigDecimal" during deserialization.
>
>I've traced the exception to BeanAdapter.java , line 916. Looking at the
code, I see that BeanAdapter has no else-if for BigDecimal type.
>
>I may suggest a handler/delegate interface for BeanAdapter to allow
developers to override the handling BeanAdapter.coerce() after exhausting
all of its if-else logic.
>

And related issue should be these:
https://issues.apache.org/jira/browse/PIVOT-704
https://issues.apache.org/jira/browse/PIVOT-705

Of course your comments are welcome :-) ...


Bye,
Sandro

-- 
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2466861.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to