From: Marcus Comstedt Date: Tue, 6 Dec 2016 20:00:25 +0000 (+0100) Subject: Java: Use correct JNI function when calling Vector.add X-Git-Tag: libsigrok-0.5.0~167 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e83a8f495855b950953d775e7a8f7a6f53f499b9;p=libsigrok.git Java: Use correct JNI function when calling Vector.add --- diff --git a/bindings/java/org/sigrok/core/classes/classes.i b/bindings/java/org/sigrok/core/classes/classes.i index 129654d9..df372af8 100644 --- a/bindings/java/org/sigrok/core/classes/classes.i +++ b/bindings/java/org/sigrok/core/classes/classes.i @@ -76,7 +76,7 @@ namespace Glib { for (auto entry : $1) { *(CValue **) &value = new CValue(entry); - jenv->CallObjectMethod($result, Vector_add, + jenv->CallBooleanMethod($result, Vector_add, jenv->NewObject(Value, Value_init, value, true)); } }