commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/beanutils/src/java/org/apache/commons/beanutils ConvertingWrapDynaBean.java
Date Sun, 02 Feb 2003 22:54:49 GMT
craigmcc    2003/02/02 14:54:49

  Modified:    beanutils/src/java/org/apache/commons/beanutils
                        ConvertingWrapDynaBean.java
  Log:
  Use BeanUtils.copyProperty() intead of BeanUtils.setProperty() so that
  Object->Object conversions -- via registered Converters, if any, are done.
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java
  
  Index: ConvertingWrapDynaBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/ConvertingWrapDynaBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConvertingWrapDynaBean.java	15 Jan 2003 21:59:38 -0000	1.3
  +++ ConvertingWrapDynaBean.java	2 Feb 2003 22:54:49 -0000	1.4
  @@ -111,7 +111,7 @@
       public void set(String name, Object value) {
   
           try {
  -            BeanUtils.setProperty(instance, name, value);
  +            BeanUtils.copyProperty(instance, name, value);
           } catch (Throwable t) {
               throw new IllegalArgumentException
                       ("Property '" + name + "' has no write method");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message