Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dummy action in empty catch block (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 4 Oct 2017 20:07:32 +0000 (22:07 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 4 Oct 2017 20:58:26 +0000 (22:58 +0200)
src/bindings/java/jmsg_synchro.cpp

index 4fd0836..9749bf3 100644 (file)
@@ -33,9 +33,8 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject
   xbt_mutex_t mutex = (xbt_mutex_t)(uintptr_t)env->GetLongField(obj, jsynchro_field_Mutex_bind);
   try {
     xbt_mutex_acquire(mutex);
-  }
-  catch(xbt_ex& e) {
-    // Nothing to do
+  } catch (xbt_ex const& e) {
+    XBT_DEBUG("Caught an exception: %s", e.what());
   }
 }