You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/11/14 22:44:57 UTC
cvs commit: jakarta-commons-sandbox/reflect/src/java/org/apache/commons/reflect MethodUtils.java
scolebourne 2003/11/14 13:44:57
Modified: reflect/src/java/org/apache/commons/reflect MethodUtils.java
Log:
No change
Revision Changes Path
1.2 +3 -2 jakarta-commons-sandbox/reflect/src/java/org/apache/commons/reflect/MethodUtils.java
Index: MethodUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/reflect/src/java/org/apache/commons/reflect/MethodUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MethodUtils.java 29 Aug 2003 23:50:09 -0000 1.1
+++ MethodUtils.java 14 Nov 2003 21:44:57 -0000 1.2
@@ -401,9 +401,10 @@
}
Method method = getMethod(object.getClass(), methodName, parameterTypes);
- if (method == null)
+ if (method == null) {
throw new ReflectionException("No such accessible method: " +
methodName + "() on object: " + object.getClass().getName());
+ }
try {
return method.invoke(object, args);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org