There is no way to do native java arrays with CF.  CF arrays are not the
same as Java arrays. CF arrays are (were) Vectors.  If you need an Object[]
in Java, you can call the vector's toArray() method, but since you need a
float[], i think you're stuck.


I've run into this a couple times and the only solution I've found is to
write a wrapper in Java that you can use from CF but can generate an array
for passing to other java objects.  Not real nice, but it works, and those
wrapper objects are pretty simple.


barneyb

  _____  

From: Turetsky, Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:16 PM
To: CF-Talk
Subject: java/cf

All I need to do is send in 1,1,1 to this method:
public void setWidths(float[] widths) throws BadElementException {....

But everything I try errors with:
Method selection Exception.  
An exception occurred during method selection process for Method setWidths
The
cause of this exception was that either there are no methods with the the
specified method name and argument types, or the method setWidths is
overloaded with arguments types that Coldfusion can't decipher reliablly.
Use
javacast function to reduce ambiguity.  

Which by the way, someone spelled reliably wrong there :)  But anyways, I
can
use Java's sorting on my array, but this method fails on it.  Maybe I'm not
understanding what float[] means.

thanks,
seth


  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to