changeset 257:67353093ce02

DIO-23: [I2C] UnavailableDeviceException when Zulu JRE is used > Reviewed-by: duke
author snazarki
date Thu, 02 Feb 2017 15:09:24 +0300
parents 935bcaf28721
children 2da1e9b94ad7
files src/se/native/com/oracle/dio/dio_common.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/native/com/oracle/dio/dio_common.cpp	Wed Mar 30 12:57:33 2016 +0300
+++ b/src/se/native/com/oracle/dio/dio_common.cpp	Thu Feb 02 15:09:24 2017 +0300
@@ -439,12 +439,14 @@
  * Class:     com_oracle_dio_impl_Handle
  * Method:    tryLock
  */
-JNIEXPORT void JNICALL Java_com_oracle_dio_impl_Handle_tryLock
+JNIEXPORT bool JNICALL Java_com_oracle_dio_impl_Handle_tryLock
   (JNIEnv* env, jobject obj, jint timeout) {
     device_reference device = getDeviceReferenceFromHandleObject(env, obj);
     if (device != INVALID_DEVICE_REFERENCE) {
         //  add an implementation
     }
+
+    return true;
 }
 
 /*