From ffda062a689e303702005f24a87a164dee8cba8b Mon Sep 17 00:00:00 2001 From: Petre Eftime Date: Wed, 27 Jan 2016 15:07:30 +0200 Subject: Fix Java package runtime mismatch Signed-off-by: Petre Eftime --- java/jni/BluetoothGattDescriptor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/jni/BluetoothGattDescriptor.cxx') 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(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, "", "(J)V", false); jobject result = env->NewObject(b_gatt_char_class, b_gatt_char_ctor, (jlong)obj_gatt_char); -- cgit v1.2.3