Re: [flexcoders] Re: Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-13 Thread Wesley Acheson
If you need null you should use Integer (object not int primative) in java. In flex I'm not sure. On Thu, Sep 10, 2009 at 8:31 PM, Jon Gunnip jongun...@gmail.com wrote: David, The int primitive type in Java and Flex cannot be null. They both default to 0. If you have, var myInt:int; //

[flexcoders] Re: Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread whiskerstasters
Hi Tom, in my BlazeDS Debug, all my int variables are set to 0. My flex object variables of type int are pre-set to null and some are not set. When debuging Flex, I noticed Flex automatically sets my variables to 0. Why does this happen? Thank you. -David

Re: [flexcoders] Re: Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread Jon Gunnip
David, The int primitive type in Java and Flex cannot be null. They both default to 0. If you have, var myInt:int; // ActionScript int myInt; // Java then that is the same as initializing myInt to 0. Jon On Thu, Sep 10, 2009 at 11:13 AM, whiskerstasters sailorse...@yahoo.com wrote: Hi Tom,