Author: pete.muir(a)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);
Show replies by date