commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23001] - extended CallParamRule
Date Wed, 10 Sep 2003 22:23:19 GMT
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=23001>.
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=23001

extended CallParamRule





------- Additional Comments From s_kitching@yahoo.com  2003-09-10 22:23 -------
Hmm .. so the problem is that you *know* that the param you are passing to the
target method is an Integer, but the target method has prototype:
  put(String key, Object obj)
therefore CallMethodRule takes the simplest route of passing the String object
extracted from the XML, because it matches Object. 

Did you try using the variant of CallMethodRule that takes an array
of parameter types?
 Class[] paramTypes = { String.class, Integer.class };
 digester.addCallMethod(method, nparams, paramTypes);

Mime
View raw message