X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3080c6b0d097d6b3b7d5b3dda0592154ce438f64..1b3fdc02915a23586bf2595485db216c892f2e18:/src/bindings/java/jmsg.c diff --git a/src/bindings/java/jmsg.c b/src/bindings/java/jmsg.c index ecb2108691..b5a7abb076 100644 --- a/src/bindings/java/jmsg.c +++ b/src/bindings/java/jmsg.c @@ -6,7 +6,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include +#include #include #include #include @@ -67,8 +67,11 @@ void jmsg_throw_status(JNIEnv *env, msg_error_t status) { case MSG_HOST_FAILURE: jxbt_throw_host_failure(env,NULL); break; + case MSG_TASK_CANCELED: + jxbt_throw_task_cancelled(env,NULL); + break; default: - jxbt_throw_native(env,xbt_strdup("communication failed")); + jxbt_throw_native(env,xbt_strdup("undefined message failed (please see jmsg_throw_status function in jmsg.c)")); } } @@ -101,9 +104,7 @@ Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs) const char *tmp; XBT_LOG_CONNECT(jmsg); -#ifdef HAVE_TRACING XBT_LOG_CONNECT(jtrace); -#endif (*env)->GetJavaVM(env, &__java_vm);