Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-397

NumberConverter is limited to Long when converting Date/Calendar to Number

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.3
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      NumberConverter is limited to Long when converting Date/Calendar to Number.

      However it would be desirable when the conversion would work to BigDecimal and BigInteger as well.

        Activity

        Hide
        Oliver Sauder added a comment -

        Patch against trunk adding Date/Calendar to BigDecimal/BigInteger support

        Show
        Oliver Sauder added a comment - Patch against trunk adding Date/Calendar to BigDecimal/BigInteger support
        Hide
        Oliver Sauder added a comment -

        I have just recognized: When NumberConverter supports conversion from Calendar to BigDecimal and BigInteger so should DateTimeConverter support the contrary.

        Therefore I have updated the patch and added such feature.

        Would love to see this patch applied.

        Show
        Oliver Sauder added a comment - I have just recognized: When NumberConverter supports conversion from Calendar to BigDecimal and BigInteger so should DateTimeConverter support the contrary. Therefore I have updated the patch and added such feature. Would love to see this patch applied.

          People

          • Assignee:
            Unassigned
            Reporter:
            Oliver Sauder
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development