On Thu, Apr 28, 2011 at 3:23 PM, Phil Stone <[email protected]> wrote:
> 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...

I do a lot of Java interop and I almost never have to cast arguments.
I find that CFML engines are really pretty good at dealing with this,
especially when you actually have Java objects in the first place.
Right now I'm doing heavy integration between Clojure and CFML.
Clojure has its own collection class layer on top of Java's so it has
a vector type (based on ArrayList, I believe) and a map type (actually
a PersistentHashMap, based on Java's HashMap) and CFML is able to
seamlessly convert between those and native CFML arrays and structs,
pretty easily (as long as the Clojure maps use Strings for keys - it's
more idiomatic to use keywords which are unique interned symbols, but
it's easy to convert to/from Strings in Clojure for better interop).
All the other types seem to convert just fine.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:344040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to