summaryrefslogtreecommitdiffstats
path: root/java/jni/BluetoothGattDescriptor.cxx
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-01-27 15:07:30 +0200
committerPetre Eftime <[email protected]>2016-01-27 15:08:19 +0200
commitffda062a689e303702005f24a87a164dee8cba8b (patch)
tree9a9f6d8ac7a00960f016d560c06b1f8e320209ee /java/jni/BluetoothGattDescriptor.cxx
parent706445a43828269019851e34861f949a1232ebe0 (diff)
Fix Java package runtime mismatchv0.3.0
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/jni/BluetoothGattDescriptor.cxx')
-rw-r--r--java/jni/BluetoothGattDescriptor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/BluetoothGattDescriptor.cxx b/java/jni/BluetoothGattDescriptor.cxx
index 609e2715..05c45c3c 100644
--- a/java/jni/BluetoothGattDescriptor.cxx
+++ b/java/jni/BluetoothGattDescriptor.cxx
@@ -28,7 +28,7 @@
#include "tinyb_BluetoothGattDescriptor.h"
-#include "helper.h"
+#include "helper.hpp"
using namespace tinyb;
@@ -86,7 +86,7 @@ jobject Java_tinyb_BluetoothGattDescriptor_getCharacteristic(JNIEnv *env, jobjec
BluetoothGattDescriptor *obj_gatt_desc = getInstance<BluetoothGattDescriptor>(env, obj);
BluetoothGattCharacteristic *obj_gatt_char = obj_gatt_desc->get_characteristic().clone();
- jclass b_gatt_char_class = search_class(env, "BluetoothGattCharacteristic");
+ jclass b_gatt_char_class = search_class(env, *obj_gatt_char);
jmethodID b_gatt_char_ctor = search_method(env, b_gatt_char_class, "<init>",
"(J)V", false);
jobject result = env->NewObject(b_gatt_char_class, b_gatt_char_ctor, (jlong)obj_gatt_char);