skitching 2004/04/09 03:16:11 Modified: digester/src/java/org/apache/commons/digester CallMethodRule.java Log: Added javadoc comment re CallMethodRule behaviour when 1 parameter is expected and it is not found. Revision Changes Path 1.34 +7 -0 jakarta-commons/digester/src/java/org/apache/commons/digester/CallMethodRule.java Index: CallMethodRule.java =================================================================== RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/CallMethodRule.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- CallMethodRule.java 8 Apr 2004 06:11:35 -0000 1.33 +++ CallMethodRule.java 9 Apr 2004 10:16:11 -0000 1.34 @@ -52,6 +52,13 @@ * tags nested within the one associated with the CallMethodRule will * fire before the CallMethodRule invokes the target method. This behaviour is * not configurable. </p> + * + * <p>Note also that if a CallMethodRule is expecting exactly one parameter + * and that parameter is not available (eg CallParamRule is used with an + * attribute name but the attribute does not exist) then the method will + * not be invoked. If a CallMethodRule is expecting more than one parameter, + * then it is always invoked, regardless of whether the parameters were + * available or not (missing parameters are passed as null values).</p> */ public class CallMethodRule extends Rule {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]