Update of /var/cvs/src/org/mmbase/util/functions
In directory james.mmbase.org:/tmp/cvs-serv10959
Modified Files:
BeanFunction.java
Log Message:
fixed horrible bug, making the 'FunctionsTestCases' fail
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/functions
Index: BeanFunction.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/functions/BeanFunction.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- BeanFunction.java 3 Feb 2008 17:33:57 -0000 1.25
+++ BeanFunction.java 13 Jun 2008 08:39:22 -0000 1.26
@@ -27,7 +27,7 @@
* delegates to a static method in this class).
*
* @author Michiel Meeuwissen
- * @version $Id: BeanFunction.java,v 1.25 2008/02/03 17:33:57 nklasens Exp $
+ * @version $Id: BeanFunction.java,v 1.26 2008/06/13 08:39:22 michiel Exp $
* @see org.mmbase.util.functions.MethodFunction
* @see org.mmbase.util.functions.FunctionFactory
* @since MMBase-1.8
@@ -212,7 +212,7 @@
}
}
if (parameterName.equals("node") &&
org.mmbase.bridge.Node.class.isAssignableFrom(parameterTypes[0])) {
- nodeParameter = method;
+ nodeParameter = m;
} else {
if(defaultValue != null) {
if (required) {
@@ -283,7 +283,7 @@
Object ret = method.invoke(b);
return ret;
} catch (Exception e) {
- throw new RuntimeException(e);
+ throw new RuntimeException("" + this + " " + e.getMessage(), e);
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs