Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix MSG_file_open java banding
authorPierre Veyre <pierre.veyre@cc.in2p3.fr>
Wed, 19 Mar 2014 15:16:47 +0000 (16:16 +0100)
committerPierre Veyre <pierre.veyre@cc.in2p3.fr>
Wed, 19 Mar 2014 15:16:47 +0000 (16:16 +0100)
src/bindings/java/jmsg_file.c
src/bindings/java/jmsg_file.h

index f8adbdabfd0d5ca7663b77742903a3c3a64c5dbd..92b32c9bc88ddcfaf477a5d095840254cd7456a4 100644 (file)
@@ -26,12 +26,12 @@ Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {
   xbt_assert((jfile_field_bind != NULL), "Can't find \"bind\" field in File class.");
 }
 JNIEXPORT void JNICALL
   xbt_assert((jfile_field_bind != NULL), "Can't find \"bind\" field in File class.");
 }
 JNIEXPORT void JNICALL
-Java_org_simgrid_msg_File_open(JNIEnv *env, jobject jfile, jobject jstorage, jobject jpath) {
+Java_org_simgrid_msg_File_open(JNIEnv *env, jobject jfile, jobject jpath) {
   const char *storage = (*env)->GetStringUTFChars(env, jstorage, 0);
   const char *path = (*env)->GetStringUTFChars(env, jpath, 0);
   msg_file_t file;
 
   const char *storage = (*env)->GetStringUTFChars(env, jstorage, 0);
   const char *path = (*env)->GetStringUTFChars(env, jpath, 0);
   msg_file_t file;
 
-  file = MSG_file_open(storage, path, NULL);
+  file = MSG_file_open(path, NULL);
   jfile_bind(env, jfile, file);
 
   (*env)->ReleaseStringUTFChars(env, jstorage, storage);
   jfile_bind(env, jfile, file);
 
   (*env)->ReleaseStringUTFChars(env, jstorage, storage);
index 05dc5751ff50a2a4f1a5221f9d4d24dac80d143b..e2c0352e39f9f03a0294efae797f408b6b2660bd 100644 (file)
@@ -28,7 +28,7 @@ Java_org_simgrid_msg_File_nativeInit(JNIEnv*, jclass);
  * Signature   (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  */
 JNIEXPORT void JNICALL
  * Signature   (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  */
 JNIEXPORT void JNICALL
-Java_org_simgrid_msg_File_open(JNIEnv*, jobject, jobject, jobject);
+Java_org_simgrid_msg_File_open(JNIEnv*, jobject, jobject);
 /**
  * Class                       org_simgrid_msg_File
  * Method                      read
 /**
  * Class                       org_simgrid_msg_File
  * Method                      read