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 20249] - When using digester rules xml file, digester connot assign date, int or foalt setter fields type to a bean.
Date Sat, 16 Aug 2003 23:23:02 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=20249>.
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=20249

When using digester rules xml file, digester connot assign date, int or foalt setter fields
type to a bean.

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
            Summary|When using digester rules   |When using digester rules
                   |xml file, digester connot   |xml file, digester connot
                   |assign date, int or foalt   |assign date, int or foalt
                   |setter fields type to a     |setter fields type to a
                   |bean.                       |bean.



------- Additional Comments From craig.mcclanahan@sun.com  2003-08-16 23:23 -------
When you use the <call-method-rule> as you are doing, Digester assumes that the
parameter type expected by the method is a String.  Therefore, to call a method
that expects a different type, you have to indicate the expected type.  For
example, you should change your rule for "setId" to be like this:

  <call-method-rule pattern="id" methodname="setId"
                 paramcount="0" paramtypes="java.lang.Long.TYPE"/>

See the Javadocs for CallMethodRule for more information about parameter types.

Mime
View raw message