commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r453827 - in /jakarta/commons/proper/beanutils/trunk: src/java/org/apache/commons/beanutils/LazyDynaClass.java xdocs/changes.xml
Date Sat, 07 Oct 2006 01:20:15 GMT
Author: niallp
Date: Fri Oct  6 18:20:14 2006
New Revision: 453827

URL: http://svn.apache.org/viewvc?view=rev&rev=453827
Log:
Fix for BEANUTILS-250 - LazyDynaClass can create a DynaProperty with a "null" type

Modified:
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java
    jakarta/commons/proper/beanutils/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java?view=diff&rev=453827&r1=453826&r2=453827
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/LazyDynaClass.java
Fri Oct  6 18:20:14 2006
@@ -167,7 +167,11 @@
      *  restricted, so no new properties can be added
      */
     public void add(String name, Class type) {
-        add(new DynaProperty(name, type));
+        if (type == null) {
+            add(name);
+        } else {
+            add(new DynaProperty(name, type));
+        }
     }
 
     /**

Modified: jakarta/commons/proper/beanutils/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/xdocs/changes.xml?view=diff&rev=453827&r1=453826&r2=453827
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/beanutils/trunk/xdocs/changes.xml Fri Oct  6 18:20:14 2006
@@ -40,6 +40,9 @@
   <body>
 
     <release version="1.7.1" date="in SVN">
+      <action dev="niallp" type="fix" issue="BEANUTILS-250">
+         LazyDynaClass can create a DynaProperty with a "null" type.
+      </action>
       <action dev="niallp" type="fix" issue="BEANUTILS-54" due-to="Pascal Grange">
          Add Implementation-Vendor-Id entry to jar's manifest.
       </action>



---------------------------------------------------------------------
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