commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r473742 - /jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Date Sat, 11 Nov 2006 15:52:41 GMT
Author: niallp
Date: Sat Nov 11 07:52:40 2006
New Revision: 473742

URL: http://svn.apache.org/viewvc?view=rev&rev=473742
Log:
Fix for BEANUTILS-262 change getPropertyDescriptor() and setNestedProperty() methods to throw
a NestedNullException (as the getNestedProperty() method does)

Modified:
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java

Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java?view=diff&rev=473742&r1=473741&r2=473742
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Sat Nov 11 07:52:40 2006
@@ -846,7 +846,7 @@
                 }
             }
             if (bean == null) {
-                throw new IllegalArgumentException
+                throw new NestedNullException
                        ("Null property value for '" + name.substring(0, period) +
                         "' on bean class '" + bean.getClass() + "'");
             }
@@ -1806,7 +1806,7 @@
                 nestedBean = getSimpleProperty(bean, next);
             }
             if (bean == null) {
-                throw new IllegalArgumentException
+                throw new NestedNullException
                         ("Null property value for '" + name.substring(0, delim) +
                          "' on bean class '" + bean.getClass() + "'");
             }



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