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

LocaleConverters do not check their default value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.9.0
    • Labels:
      None

      Description

      Every LocaleConverter derived from BaseLocaleConverter allows specifying a default value. If configured correspondingly, this default value is returned if a null value is to be converted or if a conversion error occurs.

      The type of the default value is Object; it is not checked whether the type is compatible with the desired target type. So if an invalid object is set as default value, the converter will return unexpected results.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oliver.heger@t-online.de Oliver Heger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: