craigmcc 01/02/22 10:46:16 Modified: src/share/org/apache/struts/digester CallMethodRule.java Log: Restore the ability to call Digester.addCallMethod(pattern,methodname,0) and have it call the specified method with a single String parameter, gathered from the body text of the matched element. Submitted by: Martin Cooper <[EMAIL PROTECTED]> PR: Buszilla #670 Revision Changes Path 1.8 +7 -4 jakarta-struts/src/share/org/apache/struts/digester/CallMethodRule.java Index: CallMethodRule.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/digester/CallMethodRule.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- CallMethodRule.java 2001/02/13 23:53:36 1.7 +++ CallMethodRule.java 2001/02/22 18:46:12 1.8 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/digester/CallMethodRule.java,v 1.7 2001/02/13 23:53:36 craigmcc Exp $ - * $Revision: 1.7 $ - * $Date: 2001/02/13 23:53:36 $ + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/digester/CallMethodRule.java,v 1.8 2001/02/22 18:46:12 craigmcc Exp $ + * $Revision: 1.8 $ + * $Date: 2001/02/22 18:46:12 $ * * ==================================================================== * @@ -75,7 +75,7 @@ * element. * * @author Craig McClanahan - * @version $Revision: 1.7 $ $Date: 2001/02/13 23:53:36 $ + * @version $Revision: 1.8 $ $Date: 2001/02/22 18:46:12 $ */ public final class CallMethodRule extends Rule { @@ -245,6 +245,8 @@ else { parameters = new String[1]; parameters[0] = bodyText; + paramTypes = new Class[1]; + paramTypes[0] = "abc".getClass(); } // Construct the parameter values array we will need @@ -290,6 +292,7 @@ bodyText = null; methodName = null; + paramCount = 0; paramTypes = null; }