]> sigrok.org Git - libsigrok.git/commitdiff
Java: Use correct JNI function when calling Vector.add
authorMarcus Comstedt <redacted>
Tue, 6 Dec 2016 20:00:25 +0000 (21:00 +0100)
committerMarcus Comstedt <redacted>
Tue, 6 Dec 2016 20:04:05 +0000 (21:04 +0100)
bindings/java/org/sigrok/core/classes/classes.i

index 129654d959105bcc7a51894e8852adb7bb56489e..df372af805690a633e51424fdb25ace5ad8a5009 100644 (file)
@@ -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));
   }
 }