craigmcc    02/03/10 21:13:36

  Modified:    src/share/org/apache/struts/util Tag: STRUTS_1_0_BRANCH
                        BeanUtils.java
  Log:
  Mirror a fix from the common-beanutils version that corrects support for
  indexed properties in BeanUtils.populate().
  
  PR: Bugzilla #6465, against commons-beanutils.
  Submitted by: Udo Schnurpfeil <udo.schnurpfeil at atanion.com>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.28.2.2  +6 -5      
jakarta-struts/src/share/org/apache/struts/util/Attic/BeanUtils.java
  
  Index: BeanUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/Attic/BeanUtils.java,v
  retrieving revision 1.28.2.1
  retrieving revision 1.28.2.2
  diff -u -r1.28.2.1 -r1.28.2.2
  --- BeanUtils.java    21 May 2001 04:23:48 -0000      1.28.2.1
  +++ BeanUtils.java    11 Mar 2002 05:13:35 -0000      1.28.2.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/Attic/BeanUtils.java,v 
1.28.2.1 2001/05/21 04:23:48 craigmcc Exp $
  - * $Revision: 1.28.2.1 $
  - * $Date: 2001/05/21 04:23:48 $
  + * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/Attic/BeanUtils.java,v 
1.28.2.2 2002/03/11 05:13:35 craigmcc Exp $
  + * $Revision: 1.28.2.2 $
  + * $Date: 2002/03/11 05:13:35 $
    *
    * ====================================================================
    *
  @@ -88,7 +88,7 @@
    * @author Craig R. McClanahan
    * @author Ralph Schaer
    * @author Chris Audley
  - * @version $Revision: 1.28.2.1 $ $Date: 2001/05/21 04:23:48 $
  + * @version $Revision: 1.28.2.2 $ $Date: 2002/03/11 05:13:35 $
    */
   
   public class BeanUtils {
  @@ -474,7 +474,8 @@
   
               // Convert the parameter value as required for this setter method
               Object parameters[] = new Object[1];
  -            if (parameterTypes[0].isArray()) {
  +            //            if (parameterTypes[0].isArray()) {
  +            if (parameterType.isArray()) {
                   if (value instanceof String) {
                       String values[] = new String[1];
                       values[0] = (String) value;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to