Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-704

JSONSerializer can't deserialize to BigDecimal

    XMLWordPrintableJSON

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

      Attachments

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

        Activity

          People

            smartini Sandro Martini
            pkthoo Augustus Thoo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: