harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r454168 - /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
Date Sun, 08 Oct 2006 16:23:06 GMT
Author: tellison
Date: Sun Oct  8 09:23:04 2006
New Revision: 454168

URL: http://svn.apache.org/viewvc?view=rev&rev=454168
Log:
Apply patch HARMONY-1723 ([classlib][swing/beans] TransferHandlerTest failure)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java?view=diff&rev=454168&r1=454167&r2=454168
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/TransferHandler.java
Sun Oct  8 09:23:04 2006
@@ -155,7 +155,16 @@
         try {
             result = new PropertyDescriptor(propertyName, c.getClass());
         } catch (IntrospectionException e) {
-
+            try {
+                BeanInfo bi = Introspector.getBeanInfo(c.getClass());
+                PropertyDescriptor pds[] = bi.getPropertyDescriptors();
+                for (int i = 0; i < pds.length; i++) {
+                    if (pds[i].getName().equals(propertyName)) {
+                        return pds[i];
+                    }
+                }
+            } catch (IntrospectionException e1) {
+            }
         }
         return result;
     }
@@ -299,4 +308,5 @@
         return COPY_ACTION;
     }
 }
+
 



Mime
View raw message