From: Arnaud Giersch Date: Fri, 17 May 2019 07:56:37 +0000 (+0200) Subject: Let the exception flow. X-Git-Tag: v3.22.4~117 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a330b0b4411ccdcf9652f8d33fe56f52c6370e0d?hp=9f5e401642a16c49ee0e45094e6f15c7f49a6b39 Let the exception flow. --- diff --git a/src/bindings/java/jmsg_synchro.cpp b/src/bindings/java/jmsg_synchro.cpp index b6d3f6d3d5..021dcce711 100644 --- a/src/bindings/java/jmsg_synchro.cpp +++ b/src/bindings/java/jmsg_synchro.cpp @@ -28,11 +28,7 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj) { xbt_mutex_t mutex = (xbt_mutex_t)(uintptr_t)env->GetLongField(obj, jsynchro_field_Mutex_bind); - try { - xbt_mutex_acquire(mutex); - } catch (xbt_ex const& e) { - XBT_DEBUG("Caught an exception: %s", e.what()); - } + xbt_mutex_acquire(mutex); } JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj) {