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

Wrong method BeanUtils.populate(), so that in struts indexed multiselects not work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 6465

    Description

      The error occours in struts 1.0.2 and others.
      It is not possible to use a multiselect in an indexed property, because
      the String[] result will be converted to a String in the populate Method
      of BeanUtils.

      I've fixed it locally with replacing
      ------------
      if (parameterTypes[0].isArray()) {
      ------------
      with
      ------------
      if (parameterType.isArray()) {
      ------------
      and it works find.
      parameterType is either parameterTypes[0]
      or parameterTypes[1]. It depends on non-indexed or
      indexed properties.

      Attachments

        Activity

          People

            Unassigned Unassigned
            udo.schnurpfeil@atanion.com Udo Schnurpfeil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: