[jboss-cvs] jboss-seam/src/main/org/jboss/seam/util ...
Gavin King
gavin.king at jboss.com
Mon Jul 24 16:00:42 EDT 2006
User: gavin
Date: 06/07/24 16:00:42
Modified: src/main/org/jboss/seam/util Reflections.java
Log:
oops
Revision Changes Path
1.8 +8 -7 jboss-seam/src/main/org/jboss/seam/util/Reflections.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Reflections.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Reflections.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- Reflections.java 21 Jul 2006 19:08:43 -0000 1.7
+++ Reflections.java 24 Jul 2006 20:00:42 -0000 1.8
@@ -1,4 +1,4 @@
-//$Id: Reflections.java,v 1.7 2006/07/21 19:08:43 gavin Exp $
+//$Id: Reflections.java,v 1.8 2006/07/24 20:00:42 gavin Exp $
package org.jboss.seam.util;
import java.beans.Introspector;
@@ -17,12 +17,13 @@
}
catch (IllegalArgumentException iae)
{
- throw new IllegalArgumentException(
- "Could not invoke method by reflection: " + toString(method) +
- " with parameters: (" + Strings.toClassNameString(", ", args) + ')' +
- " on: " + target.getClass().getName(),
- iae
- );
+ String message = "Could not invoke method by reflection: " + toString(method);
+ if (args!=null && args.length>0)
+ {
+ message += " with parameters: (" + Strings.toClassNameString(", ", args) + ')';
+ }
+ message += " on: " + target.getClass().getName();
+ throw new IllegalArgumentException(message, iae);
}
catch (InvocationTargetException ite)
{
More information about the jboss-cvs-commits
mailing list