X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..67d66b0cf79b9fc02c0450f254584693dbf21d3b:/src/bindings/java/JavaContext.cpp diff --git a/src/bindings/java/JavaContext.cpp b/src/bindings/java/JavaContext.cpp index 39a30704b3..48e1da96e2 100644 --- a/src/bindings/java/JavaContext.cpp +++ b/src/bindings/java/JavaContext.cpp @@ -8,7 +8,6 @@ #include "JavaContext.hpp" #include "jxbt_utilities.hpp" #include "simgrid/Exception.hpp" -#include "src/simix/smx_private.hpp" #include #include @@ -56,8 +55,8 @@ void JavaContext::start_hook() //Attach the thread to the JVM JNIEnv *env; - XBT_ATTRIB_UNUSED jint error = __java_vm->AttachCurrentThread((void**)&env, nullptr); - xbt_assert((error == JNI_OK), "The thread could not be attached to the JVM"); + xbt_assert(__java_vm->AttachCurrentThread((void**)&env, nullptr) == JNI_OK, + "The thread could not be attached to the JVM"); this->jenv_ = env; }