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

Some of the converters ignore the passed in target type

    Details

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

      Description

      Many converter classes derived from AbstractConverter ignore the target type in their implementation of converterToType(). They just perform a conversion to their default type.

      Depending on the way converters are registered, this may not be a major problem, but it is inconsistent. In theory it can lead to unexpected data and ClassCastExceptions after a successful conversion.

        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: