returning a Collection with JNI

R

rmcalinden

How do you return a Collection from a JNI method call in C++?

normally, it's:

jDataType = env->CallDataTypeMethod(jobject, jmethodID)

but obviously there's none for CallCollectionMethod and there's no
jCollection?

Was thinking about returning and Object and casting it but not sure it
can be cast to a c++ collection?

thanks...
 
G

Gordon Beaton

How do you return a Collection from a JNI method call in C++?

The same way as for every other type of object.
normally, it's:

jDataType = env->CallDataTypeMethod(jobject, jmethodID)

but obviously there's none for CallCollectionMethod and there's no
jCollection?

No, there's CallObjectMethod() and jobject.

/gordon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top