Jeff,

Let me get this clear. If I understand correctly you're passing an AS 
number hoping that it will convert to a Java Long. But your number is 
set to null, and you'd like it to convert to null on the Java type.

Is this correct?

Douglas


Jeff Krueger wrote:
> Thanks.  I am not using a primitive, I am using Long.  I wonder what 
> it does for those.
>  
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
>     Jeff,
>
>     I'm not sure that this will help you find a solution, but it confirms
>     that this is a known issue:
>
>     
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
>     
> <http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html>
>
>     "Primitive values cannot be set to null in Java. When passing Boolean
>     and Number values from the client to a Java object, Flex
>     interprets null
>     values as the default for primitive types; for example, 0 for double,
>     float, long, int, short, byte, \u0000 for char, and false for
>     Boolean.
>     Only primitive Java types get default values."
>
>     Douglas
>
>     -------------------------------------------------
>
>     Douglas McCarroll
>
>     CairngormDocs.org Webmaster
>     http://www.CairngormDocs.org <http://www.cairngormdocs.org/>
>
>     Flex Developer
>     http://www.brightworks.com <http://www.brightworks.com/>
>     617.459.3840
>
>     -------------------------------------------------
>
>     Jeff Krueger wrote:
>     > All,
>     >
>     > I am finding that when I pass a actionscript class to a remote
>     > java object and a number variable type in the actionscript class is
>     > set to NaN (Null), that the java class gets set to a 0, instead
>     of a
>     > null. Is there something I am missing or something I need to set
>     the
>     > number to so it will be null in my java class?
>     >
>     > Thanks
>     >
>     > Jeff
>     >
>     >
>     > ----------------------------------------------------------
>     > Access over 1 million songs - Yahoo! Music Unlimited.
>     >
>     
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
>     
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>>
>
>     >
>     >
>
>
> ------------------------------------------------------------------------
> Want to start your own business? Learn how on Yahoo! Small Business. 
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index> 
>
>  

Reply via email to