X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dee2366d6c226276bb2d9fba2b709a49fb0fbe38..7ef2735c5dafe6726c713539188933270ee8534c:/src/bindings/java/jmsg_as.c diff --git a/src/bindings/java/jmsg_as.c b/src/bindings/java/jmsg_as.c index 30f8b0ed67..a3daec624b 100644 --- a/src/bindings/java/jmsg_as.c +++ b/src/bindings/java/jmsg_as.c @@ -1,10 +1,10 @@ /* Functions related to the java host instances. */ -/* Copyright (c) 2007-2012. The SimGrid Team. +/* Copyright (c) 2007-2014. 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. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/str.h" #include "xbt/dict.h" @@ -158,7 +158,7 @@ Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jobject jas) host = xbt_dynar_get_as(table,index,msg_host_t); - jhost = (jobject) (MSG_host_get_data(host)); + jhost = (jobject) xbt_lib_get_level(host, JAVA_HOST_LEVEL); if (!jhost) { jname = (*env)->NewStringUTF(env, MSG_host_get_name(host));