diff options
author | DaveInAus <DaveInAus@users.noreply.github.com> | 2015-08-04 09:40:35 +1000 |
---|---|---|
committer | DaveInAus <DaveInAus@users.noreply.github.com> | 2015-08-04 09:40:35 +1000 |
commit | 1803dacb3cc7dac752141d85a932b2ca64c1e6c3 (patch) | |
tree | f876679a44bbad56b2aa466e3045a73187eef5ef /src/java | |
parent | a63d7289a197796b109717236562d22d3d7b8543 (diff) |
Update com_libmailcore_IndexSet.cpp
In JNIEXPORT jobject JNICALL Java_com_libmailcore_IndexSet_allRanges
parameter passed is incorrect causing a crash in GetMethodID
jmethodID method = env->GetMethodID(cls, "add", "(Ljava.lang.Object;)Z");
should be
jmethodID method = env->GetMethodID(cls, "add", "(Ljava/lang/Object;)Z");
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/native/com_libmailcore_IndexSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/native/com_libmailcore_IndexSet.cpp b/src/java/native/com_libmailcore_IndexSet.cpp index 0c93f2ae..1b685384 100644 --- a/src/java/native/com_libmailcore_IndexSet.cpp +++ b/src/java/native/com_libmailcore_IndexSet.cpp @@ -131,7 +131,7 @@ JNIEXPORT jobject JNICALL Java_com_libmailcore_IndexSet_allRanges jmethodID constructor = env->GetMethodID(cls, "<init>", "(I)V"); unsigned int count = MC_JAVA_NATIVE_INSTANCE->rangesCount(); jobject javaVector = env->NewObject(cls, constructor, count); - jmethodID method = env->GetMethodID(cls, "add", "(Ljava.lang.Object;)Z"); + jmethodID method = env->GetMethodID(cls, "add", "(Ljava/lang/Object;)Z"); Range * ranges = MC_JAVA_NATIVE_INSTANCE->allRanges(); for(unsigned int i = 0 ; i < count ; i ++) { jobject javaObject = rangeToJava(env, ranges[i]); |