You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ml...@apache.org on 2006/04/21 09:04:24 UTC

svn commit: r395801 - /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java

Author: mloenko
Date: Fri Apr 21 00:04:23 2006
New Revision: 395801

URL: http://svn.apache.org/viewcvs?rev=395801&view=rev
Log:
Applying the second patch from HARMONY-237 to remaining methods

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java?rev=395801&r1=395800&r2=395801&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java Fri Apr 21 00:04:23 2006
@@ -72,7 +72,7 @@
     public PropertyDescriptor(String propertyName, Method getter, Method setter)
             throws IntrospectionException {
         super();
-        if (propertyName == null) {
+        if (propertyName == null || propertyName.length() == 0) {
             throw new IntrospectionException("bad property name");
         }