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 10:23:06 GMT

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

Sandro Martini edited comment on PIVOT-704 at 4/18/11 10:23 AM:
----------------------------------------------------------------

Yesterday I have committed (under core/test/...) a JUnit Test case to demonstrate the problem
(even with my patch).
I've just seen that in next days I have to fix even the test case.
As soon as possible I hope to fix the problem, but I'll post here a new patch before committing.


      was (Author: smartini):
    Yesterday I have committed (under core/test/...) a JUnit Test case to demonstrate the
problem (even with my patch).
Probably the test case is not perfect, so some change could be done even on it.
As soon as possible I hope to fix the problem, but I'll post here a new patch before committing.

  
> 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: BeanAdapterTest.java, TestObject.java, patch.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