Pivot
  1. Pivot
  2. PIVOT-704

JSONSerializer can't deserialize to BigDecimal

    Details

      Description

      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

      1. patch_new.patch
        2 kB
        Sandro Martini
      2. patch_old.patch
        1 kB
        Sandro Martini

        Activity

        Augustus Thoo created issue -
        Sandro Martini made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Assignee Sandro Martini [ smartini ]
        Fix Version/s 2.0.1 [ 12315951 ]
        Sandro Martini made changes -
        Attachment patch.patch [ 12474575 ]
        Augustus Thoo made changes -
        Attachment BeanAdapterTest.java [ 12474853 ]
        Attachment TestObject.java [ 12474854 ]
        Sandro Martini made changes -
        Comment [ Sorry, too much in hurry and made a big mistake (generated getters/setters) ... sorry.
        I'll continue my work on this this week.

        Bye,
        Sandro
        ]
        Sandro Martini made changes -
        Attachment patch.patch [ 12474575 ]
        Sandro Martini made changes -
        Attachment TestObject.java [ 12474854 ]
        Sandro Martini made changes -
        Attachment BeanAdapterTest.java [ 12474853 ]
        Sandro Martini made changes -
        Attachment patch_old.patch [ 12476598 ]
        Sandro Martini made changes -
        Attachment patch_new.patch [ 12476600 ]
        Sandro Martini made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Sandro Martini
            Reporter:
            Augustus Thoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development