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

[beanutils]DateLocaleConverter does NOT return a default value if a conversion error occurs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • None
    • None
    • None
    • Operating System: All
      Platform: PC

    • 29772

    Description

      The org.apache.commons.beanutils.locale.converters.DateLocaleConverter does not
      return a default value even when the object is constructed with a default
      value.

      The reason for the exception being thrown lies within the BaseLocaleConvert
      class that DateLocaleConverter extends. I checked the source of
      BaseLocaleConvert and found that the boolean Default is set to false with this
      comment... Should we return the default value on conversion errors? There is no
      method supplied within the any of the subclasses that allows this boolean to be
      set.

      Attachments

        Activity

          People

            Unassigned Unassigned
            quinten.miller@mcri.edu.au Quinten Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: