diff options
author | Sven Gothel <[email protected]> | 2020-09-22 11:20:18 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-09-22 11:20:18 +0200 |
commit | 21c1368b65e7724bee516f21a8186002020c5f3b (patch) | |
tree | 64d992f6ed8b02034ec5e19aed9bf55df1cb0bd5 /java | |
parent | 8eb3ecb3033b28c5b6cc13807d0948f245ce9729 (diff) |
Fix Java_direct_1bt_tinyb_DBTGattDescriptor_toStringImpl(..): Wrong arg list, oops. Added call to C++/Java example for validationv2.1.27
Diffstat (limited to 'java')
-rw-r--r-- | java/jni/direct_bt/DBTGattDescriptor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/jni/direct_bt/DBTGattDescriptor.cxx b/java/jni/direct_bt/DBTGattDescriptor.cxx index d1462825..1dfc372f 100644 --- a/java/jni/direct_bt/DBTGattDescriptor.cxx +++ b/java/jni/direct_bt/DBTGattDescriptor.cxx @@ -47,12 +47,12 @@ void Java_direct_1bt_tinyb_DBTGattDescriptor_deleteImpl(JNIEnv *env, jobject obj } } -jstring Java_direct_1bt_tinyb_DBTGattDescriptor_toStringImpl(JNIEnv *env, jobject obj, jlong nativeInstance) { +jstring Java_direct_1bt_tinyb_DBTGattDescriptor_toStringImpl(JNIEnv *env, jobject obj) { (void)obj; try { - GATTDescriptor *nativePtr = castInstance<GATTDescriptor>(nativeInstance); - JavaGlobalObj::check(nativePtr->getJavaObject(), E_FILE_LINE); - return from_string_to_jstring(env, nativePtr->toString()); + GATTDescriptor *descriptor = getDBTObject<GATTDescriptor>(env, obj); + JavaGlobalObj::check(descriptor->getJavaObject(), E_FILE_LINE); + return from_string_to_jstring(env, descriptor->toString()); } catch(...) { rethrow_and_raise_java_exception(env); } |