pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (PIVOT-704) JSONSerializer can't deserialize to BigDecimal
Date Mon, 18 Apr 2011 12:31:05 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021000#comment-13021000
] 

Sandro Martini edited comment on PIVOT-704 at 4/18/11 12:30 PM:
----------------------------------------------------------------

Greg, thanks for the hint, I'll try to follow your suggestions ... maybe I could as first
try commit the last patch and then after see how to make the other change (based on your suggestions).

This should solve this ticket (one time test case and related test class will be ok, in next
days), so the other (patch_old.patch) has been re-attached here but only as a reference. I'll
apply this patch in one/max two days (as soon as possible).

Note that I deleted previous attachments because with some changes they are part of Pivot.
Than you very much to all for the help.


      was (Author: smartini):
    This should be the final patch for this ticket (one time test case and related test class
will be ok, in next days), so the other (patch_old.patch) has been re-attached here but only
as a reference. I'll apply this patch in one/max two days (as soon as possible).

Note that I deleted previous attachments because with some changes they are part of Pivot.
Than you very much to all for the help.

  
> JSONSerializer can't deserialize to BigDecimal
> ----------------------------------------------
>
>                 Key: PIVOT-704
>                 URL: https://issues.apache.org/jira/browse/PIVOT-704
>             Project: Pivot
>          Issue Type: Bug
>          Components: core-beans, core-json, core-serialization
>    Affects Versions: 2.0
>            Reporter: Augustus Thoo
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: patch_new.patch, patch_old.patch
>
>
> JSONSerializer would throw an IllegalArgumentException "Unable to coerce double to BigDecimal"
when the object class contains at least one BigDecimal field.
> Exception is traced to BeanAdapter.java , line 916, where coerce(Object, Class) has no
else-if for BigDecimal class.
> Re: http://apache-pivot-users.399431.n3.nabble.com/JSONSerializer-can-t-deserialize-to-BigDecimal-td2464302.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message