Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-448

LocaleConverters do not check their default value

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Oliver Heger made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Oliver Heger made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Oliver Heger added a comment -

        Fixed in trunk in revision 1540186.

        Show
        Oliver Heger added a comment - Fixed in trunk in revision 1540186.
        Oliver Heger made changes -
        Field Original Value New Value
        Fix Version/s 1.9.0 [ 12325440 ]
        Fix Version/s LATER THAN 1.8.4 [ 12312151 ]
        Oliver Heger created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development