X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8f375f14b9e04a4dd1767cb70c70b6dfc173f9c..b9625f82f86db0674e911887addce45dca31b57f:/src/bindings/java/jmsg_as.cpp diff --git a/src/bindings/java/jmsg_as.cpp b/src/bindings/java/jmsg_as.cpp index 628bffcdb4..405df1033d 100644 --- a/src/bindings/java/jmsg_as.cpp +++ b/src/bindings/java/jmsg_as.cpp @@ -1,6 +1,6 @@ /* Java bindings of the NetZones. */ -/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2020. 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. */ @@ -62,7 +62,7 @@ JNIEXPORT jobject JNICALL Java_org_simgrid_msg_As_getName(JNIEnv * env, jobject JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_As_getSons(JNIEnv * env, jobject jas) { int index = 0; jobjectArray jtable; - sg_netzone_t self_as = jnetzone_get_native(env, jas); + const simgrid::s4u::NetZone* self_as = jnetzone_get_native(env, jas); jclass cls = env->FindClass("org/simgrid/msg/As"); @@ -96,7 +96,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_As_getSons(JNIEnv * env, job } JNIEXPORT jobject JNICALL Java_org_simgrid_msg_As_getProperty(JNIEnv *env, jobject jas, jobject jname) { - simgrid::s4u::NetZone* as = jnetzone_get_native(env, jas); + const simgrid::s4u::NetZone* as = jnetzone_get_native(env, jas); if (not as) { jxbt_throw_notbound(env, "as", jas); @@ -104,7 +104,7 @@ JNIEXPORT jobject JNICALL Java_org_simgrid_msg_As_getProperty(JNIEnv *env, jobje } const char *name = env->GetStringUTFChars(static_cast(jname), 0); - const char* property = MSG_zone_get_property_value(as, name); + const char* property = sg_zone_get_property_value(as, name); if (not property) { return nullptr; } @@ -121,7 +121,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jo jobjectArray jtable; jobject jhost; jstring jname; - simgrid::s4u::NetZone* as = jnetzone_get_native(env, jas); + const simgrid::s4u::NetZone* as = jnetzone_get_native(env, jas); jclass cls = jxbt_get_class(env, "org/simgrid/msg/Host"); if (not cls)