C
Christian Meier
Hi
I hope this post is not off-topic here but I couldn't find a more
appropriate newsgroup.
I want to overload methods in the JNI and have a problem with the method
name which has to be extended with two underscores and the encoded argument
descriptors. Everything works fine when I use parameter like byte, short or
string. With all these parameters my method would be
"Java_jni_MyTestClass_overloadedFunction__BSLjava_lang_String_2(JNIEnv* env,
jobject jObj, jbyte bInByte, jshort sInShort, jstring lsInString)". Now the
problem: I can't figure out what the argument descriptor for the
parameter-type "jobject" is. I tried "Ljava_lang_Object_2" but this didn't
work. I couldn't find samples using jobject parameter in overloaded methods
on the internet and usenet. Can you tell me the argument descriptor for
"jobject"?
Greetings Chris
I hope this post is not off-topic here but I couldn't find a more
appropriate newsgroup.
I want to overload methods in the JNI and have a problem with the method
name which has to be extended with two underscores and the encoded argument
descriptors. Everything works fine when I use parameter like byte, short or
string. With all these parameters my method would be
"Java_jni_MyTestClass_overloadedFunction__BSLjava_lang_String_2(JNIEnv* env,
jobject jObj, jbyte bInByte, jshort sInShort, jstring lsInString)". Now the
problem: I can't figure out what the argument descriptor for the
parameter-type "jobject" is. I tried "Ljava_lang_Object_2" but this didn't
work. I couldn't find samples using jobject parameter in overloaded methods
on the internet and usenet. Can you tell me the argument descriptor for
"jobject"?
Greetings Chris