Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3137

Some property can be Indexed & Simple at once - PROBLEM WITH BeanUtils version 1.7.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.7, 1.2.8, 1.2.9, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9
    • Fix Version/s: 1.4.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows + Tomcat
    • Flags:
      Important

      Description

      SOLUTION: replace bean utils 1.7.0 with 1.8.0Beta

      ----------------------------------------------------------------------
      This problem is in Struts(BeanUtils) for a years, so I finally decided to point to it. I wrote my own fix, but new
      ----------------------------------------------------------------------
      PROBLEM DESCRIPTION:

      There is a problem in PropertyDescriptors.
      Property defined like:

      private List property = new List();

      public List getProperty();
      public void setProperty(List);
      AND
      public String getProperty(int index);
      public void setProperty(int index, String value);

      The property described above is SIMPLE & INDEXED at one time. SO using of expression language for "property" & "property[index]" should work at once.

      The problem is in BeanUtils, which doesn't create both PropertyDescriptors and treats with both properties in one way and suppose that combination of Simple & Indexed property DOESN'T OCCUR.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pbenedict Paul Benedict
                Reporter:
                honzavitasek Jan Vitasek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: