Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge commit '4df273f15273f959fc9e6ed69d2bf5e607ec9bf7' into HEAD
[simgrid.git] / src / jxbt_utilities.c
index 6b66e6a..1daf370 100644 (file)
@@ -1,6 +1,6 @@
 /* Various JNI helper functions                                             */
 
-/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2007-2012. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -201,11 +201,11 @@ jfieldID jxbt_get_sfield(JNIEnv * env, const char *classname,
 /* ***************** */
 /* EXCEPTION RAISING */
 /* ***************** */
-static void jxbt_throw_by_name(JNIEnv * env, const char *name, char *msg)
+void jxbt_throw_by_name(JNIEnv * env, const char *name, char *msg)
 {
   jclass cls = (*env)->FindClass(env, name);
 
-  xbt_assert2(cls, "%s (Plus severe error: class %s not found)\n", msg,
+  xbt_assert(cls, "%s (Plus severe error: class %s not found)\n", msg,
               name);
 
   (*env)->ThrowNew(env, cls, msg);