Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add setset to cmake build chain
[simgrid.git] / src / java / jxbt_utilities.h
index 699e4f6..6563f56 100644 (file)
@@ -1,14 +1,10 @@
-/*
- * $Id$
- *
- * Various JNI helper functions
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right reserved. 
- *
- * 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.
- *
- */
+/* Various JNI helper functions                                             */
+
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* 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. */
 
 #ifndef JXBT_UTILITY_H
 #define JXBT_UTILITY_H
@@ -63,7 +59,7 @@ jfieldID jxbt_get_sfield(JNIEnv * env, const char *classname,
       jxbt_throw_host_failure(env, detail); \
     } else if (res == MSG_TRANSFER_FAILURE) { \
       jxbt_throw_transfer_failure(env,detail); \
-    } else if (res == MSG_TIMEOUT_FAILURE) { \
+    } else if (res == MSG_TIMEOUT) { \
       jxbt_throw_time_out_failure(env,detail); \
     } else if (res == MSG_TASK_CANCELLED){ \
       jxbt_throw_task_cancelled(env,detail); \