DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8244>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8244 CallMethodRule rule can't be used to call no arg methods ------- Additional Comments From [EMAIL PROTECTED] 2002-04-18 11:08 ------- Here is the patch i suggest. There was no test case for the CallMethodRule rule with paramCount=0 so i added one in RuleTestCase.java. I also added a test for CallMethodRule when calling a method taking no arguments, I tested with toString() on the class Employee. Both tests use a new XML test file, Test5.xml. CallMethodRule.java has been changed so that a no argument method is called when paramCount is set to zero and paramTypes is null or empty. Javadocs in Digester.java and CallMethodRule.java have been updated accordingly. This patch will break uses of CallMethodRule with paramCount=0 *AND* paramTypes=null (or empty). However nobody should have used the rule this way, it's a nonsense. In this case paramTypes provides no useful information and could be omitted. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
