Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-446

Some of the converters ignore the passed in target type

    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

      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.

        Activity

        Oliver Heger created issue -
        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 ]
        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 -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Oliver Heger made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        18d 54m 1 Oliver Heger 08/Nov/13 21:11
        Resolved Resolved Closed Closed
        33d 23h 25m 1 Oliver Heger 12/Dec/13 20:37

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development