You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2011/02/10 11:47:54 UTC
Re: JSONSerializer can't deserialize to BigDecimal
Hi,
I like this idea, because this could enable the ability to have more freedom
in handling many different data types (like sql Date / Timestamps, Date,
etc) in user applications.
Can you create a JIRA ticket for this as an improvement for the 2.1 (maybe
with a reference to this discussion, as a comment:
http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2464302.html)
? What others think ?
On the problem with BigDecimal we can make a fix for the 2.0.1 release, ok ?
If you could create a ticket even for this (as a bug, marked for the 2.0.1,
and if you want assign it to me) ... thanks.
Bye,
Sandro
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2465200.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Sandro Martini <sa...@gmail.com>.
Ok, thanks for both suggestions :-) .
Bye
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2466927.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: JSONSerializer can't deserialize to BigDecimal
Posted by cbartlett <cb...@gmail.com>.
As far as I understand, the Apache Pivot User & Dev mailing lists are
archived on Nabble. Nabble also allows its users to post to the mailing
lists that are available from the site.
In order for your post to reach the real Pivot mailing lists (either from
Nabble, or from your email account) you will need to subscribe to the
underlying Apache Pivot mailing lists.
Details can be found here
http://pivot.apache.org/lists.html
Chris
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2472371.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Sandro Martini <sa...@gmail.com>.
Hi,
don't worry, confusion is normal in many cases (at least for me :-) ).
Nabble takes mailing lists and publish all messages in a forum-like way, to
be able to see discussions with a web browser.
But for your post (added via Nabble) you have to be a subscriber in the
related mailing list, otherwise your post will be visible only in Nabble
thread (this is the warning that Nabble put at the top of new posts, but
usually after few minutes if you are a real subscriber of the mailing list,
your post will be successfully sent to the mailing list, and the warning
removed from the Nabble view).
The mailing list for this area is user@pivot.apache.org , mainly for
discussions on use of the Pivot framework, and you can find more info (on
how to subscribe/unsubscribe, etc) here:
http://pivot.apache.org/lists.html
To see JIRA Tickets, you have to subscribe to Pivot Developers mailing list
( dev@pivot.apache.org ), but to create/edit issues you have to register in
Apache JIRA ( https://issues.apache.org/jira/browse/PIVOT ), and it's free
of course.
In you need more info, tell me.
Bye,
Sandro
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2472358.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Greg Brown <gk...@verizon.net>.
> you have reason, the original post has still not been accepted by our
> mailing lists ... I put here just for reference:
FYI, the reason it has not been accepted is probably because he is not subscribed. I'd suggest that you refrain from responding to unaccepted posts on Nabble and encourage the user to subscribe to the list. Otherwise, the message won't be visible to everyone.
G
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Greg Brown <gk...@verizon.net>.
>> 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.
This can be accomplished by providing an additional setter that will perform any non-trivial type coercion.
G
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Sandro Martini <sa...@gmail.com>.
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.
Re: JSONSerializer can't deserialize to BigDecimal
Posted by Greg Brown <gk...@verizon.net>.
The first part of this thread is missing (I didn't see it, at least). Did it possibly come from an unsubscribed user on Nabble?
G
On Feb 10, 2011, at 5:47 AM, Sandro Martini wrote:
>
> Hi,
> I like this idea, because this could enable the ability to have more freedom
> in handling many different data types (like sql Date / Timestamps, Date,
> etc) in user applications.
> Can you create a JIRA ticket for this as an improvement for the 2.1 (maybe
> with a reference to this discussion, as a comment:
> http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2464302.html)
> ? What others think ?
>
> On the problem with BigDecimal we can make a fix for the 2.0.1 release, ok ?
> If you could create a ticket even for this (as a bug, marked for the 2.0.1,
> and if you want assign it to me) ... thanks.
>
> Bye,
> Sandro
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-tp2464302p2465200.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.