Barney Boisvert wrote:
> createObject("java", "java.lang.Character").forDigit(javaCast("int",
> -1)) will return a null for you.  That's from memory, but I'm pretty
> sure it's right.

That's a good suggestion, as the forDigit() method is SUPPOSED to return 
a "char" and under certain circumstances returns null (it actually takes 
two arguments, both integers).

However, what it generates is a CHARACTER object equivalent to the null 
character.  so when I pass it to other java objects, it's apparently 
considered a character object, and it can't find the appropriate 
constructor.

The forDigit() method is SUPPOSED To return a "char", not a 
java.lang.Character object.. curious.

That being said, in my particular scenario, javaCast("null","") works 
when the method expects a list.. but I've actually created an empty 
AbstractList object, which serves the same purpose.. I'll have to upload 
the coad to a CFMX 6.1 server to find out for sure.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231056
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to