I am using 1.0.5. I am following the example in http://castor.org/xml-mapping.html and it seems to indicate that castor can set the value of an int instance variable when unmarshalling. See the "_quantity" variable on that web page. However, when I try something like this (with a mapping file), I get the error in the subject line of this email:

"Type conversion error: could not set value of _duration(int) with value of type java.lang.Integer"

Is the documentation wrong? Do I need to use an instance variable of type Integer or a method taking an Integer parameter instead?

Thanks.
--

Nick Pilch / [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to