> > Well, that did the trick. Thank you! I was under the
> impression that all arguments to overloaded Java functions
> had to be JavaCast(ed). And it certainly works on all other
> Java types that I've tried...

Actually on second read, Sean's answer is better. I missed the emphasis on *had 
to javacast*. It is only _required_ if CF cannot resolve the method without it. 
In my experience, I end up having to cast overloaded methods with 
primitives/strings more frequently. So now I always cast those, even though it 
may not be strictly needed. Just personal preference.

Though I still think javacast throwing an error on a valid byte[] array is 
wonky. IMO the function should be smart enough to say, "Hey, that object 
already is a byte array. Nothing to do here folks. Just pass it on through".

-Leigh

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344046
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to