Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-454

copyProperties() throws conversion exception for null Date

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • None
    • None

    Description

      This issue had been reported earlier and rejected too soon.

      Since 1.8.0, BeanUtils.copyProperties suddenly throws an Exception, if the property is of type Date. It did not do so in prior releases, that's why properly running software is nowadays broken. There is a workaround if the BeanUtils are used in my own code, but if it is used in 3rd party code, I am screwed.

      Please, treat null for Date the same as null for any other type and copy null from source to destination.

      For more reasons, see the comments of people who move now to new releases of BeanUtils facing the same problem. The issue gets more and more attention, but I think, nobody except the reporters are notified about it. Therefore this issue.

      Attachments

        1. beanutils-454.patch
          4 kB
          Oliver Heger

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noordsestern Markus Stahl
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: