You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/08/17 01:23:02 UTC

DO NOT REPLY [Bug 20249] - When using digester rules xml file, digester connot assign date, int or foalt setter fields type to a bean.

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org