Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-994

Failure to register a Converter with a nested type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 8.2-milestone-1, 7.4.4
    • Component/s: Properties
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      For example:

      public class FieldConverter extends AbstractConverter<List<JIRAField>>
      

      The ConverterManager returns the ListConverter instead of FieldConverter because of a limitation in populateBeans() in BeanManager:

      Object convertedValue = this.converterManager.convert(propertyDescriptor.getPropertyClass(), value);
      

      We should use propertyDescriptor.getPropertyType() instead probably.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: