[seam-commits] Seam SVN: r8171 - trunk/src/main/org/jboss/seam and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 12 16:59:49 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-05-12 16:59:49 -0400 (Mon, 12 May 2008)
New Revision: 8171

Modified:
   branches/Seam_2_0/src/main/org/jboss/seam/Component.java
   trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-2971, thanks to Dan Allen

Modified: branches/Seam_2_0/src/main/org/jboss/seam/Component.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/Component.java	2008-05-12 19:30:19 UTC (rev 8170)
+++ branches/Seam_2_0/src/main/org/jboss/seam/Component.java	2008-05-12 20:59:49 UTC (rev 8171)
@@ -464,7 +464,10 @@
             }*/
 
             String propertyName = key.substring( name.length()+1, key.length() );
-            Method setterMethod = Reflections.getSetterMethod(getBeanClass(), propertyName);
+            Method setterMethod = null;
+            try { 
+                setterMethod = Reflections.getSetterMethod(getBeanClass(), propertyName);
+            } catch (IllegalArgumentException e) {}
             if (setterMethod!=null)
             {
                if ( !setterMethod.isAccessible() ) setterMethod.setAccessible(true);

Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java	2008-05-12 19:30:19 UTC (rev 8170)
+++ trunk/src/main/org/jboss/seam/Component.java	2008-05-12 20:59:49 UTC (rev 8171)
@@ -479,7 +479,10 @@
             }*/
 
             String propertyName = key.substring( name.length()+1, key.length() );
-            Method setterMethod = Reflections.getSetterMethod(getBeanClass(), propertyName);
+            Method setterMethod = null;
+            try { 
+                setterMethod = Reflections.getSetterMethod(getBeanClass(), propertyName);
+            } catch (IllegalArgumentException e) {}
             if (setterMethod!=null)
             {
                if ( !setterMethod.isAccessible() ) setterMethod.setAccessible(true);




More information about the seam-commits mailing list