Calling a method that returns an object Array

Hello.

During a JNICALL , I wish to call a method which returns an object array.

ie my java class has a method of the form

public MyObject[] getSomeObjects(String aString){

MyObject[] theObjects=new MyObject[10];

...

return theObjects

}

Is there an equivalent to (env)->CallObjectMethod(...

which returns a jobjectArray instead of a jobject, and if not could somebody suggest a way around this.

Thanks,

Neil

[483 byte] By [n_mcleana] at [2007-10-3 10:33:28]
# 1
I believe an array oj jobjects is also a jobject. You can then cast it to another class.
bschauwejavaa at 2007-7-15 5:56:38 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Ah yes.Thankyou. :)
n_mcleana at 2007-7-15 5:56:38 > top of Java-index,Java HotSpot Virtual Machine,Specifications...