From: Paul Bédaride Date: Wed, 18 Jun 2014 14:13:35 +0000 (+0200) Subject: Fix bug with const in java bindings X-Git-Tag: v3_12~965^2^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b905c5b0498396ec27eeb8bee0c878533cf4a385 Fix bug with const in java bindings --- diff --git a/src/bindings/java/org/simgrid/surf/Action.java b/src/bindings/java/org/simgrid/surf/Action.java index 911a8d3188..6680aae400 100644 --- a/src/bindings/java/org/simgrid/surf/Action.java +++ b/src/bindings/java/org/simgrid/surf/Action.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/ActionList.java b/src/bindings/java/org/simgrid/surf/ActionList.java index 5a9493cbc4..515ad2d63a 100644 --- a/src/bindings/java/org/simgrid/surf/ActionList.java +++ b/src/bindings/java/org/simgrid/surf/ActionList.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/ActionState.java b/src/bindings/java/org/simgrid/surf/ActionState.java index 094dd49b9e..a8ebd36363 100644 --- a/src/bindings/java/org/simgrid/surf/ActionState.java +++ b/src/bindings/java/org/simgrid/surf/ActionState.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/Cpu.java b/src/bindings/java/org/simgrid/surf/Cpu.java index 61a2d5460d..e172525454 100644 --- a/src/bindings/java/org/simgrid/surf/Cpu.java +++ b/src/bindings/java/org/simgrid/surf/Cpu.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/CpuAction.java b/src/bindings/java/org/simgrid/surf/CpuAction.java index 50f0fd6055..fc99edf7e8 100644 --- a/src/bindings/java/org/simgrid/surf/CpuAction.java +++ b/src/bindings/java/org/simgrid/surf/CpuAction.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/CpuModel.java b/src/bindings/java/org/simgrid/surf/CpuModel.java index b5572a836a..28c239bc93 100644 --- a/src/bindings/java/org/simgrid/surf/CpuModel.java +++ b/src/bindings/java/org/simgrid/surf/CpuModel.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/LmmConstraint.java b/src/bindings/java/org/simgrid/surf/LmmConstraint.java index 775c379cef..52daca4277 100644 --- a/src/bindings/java/org/simgrid/surf/LmmConstraint.java +++ b/src/bindings/java/org/simgrid/surf/LmmConstraint.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/LmmVariable.java b/src/bindings/java/org/simgrid/surf/LmmVariable.java index 7e9e372296..428914b118 100644 --- a/src/bindings/java/org/simgrid/surf/LmmVariable.java +++ b/src/bindings/java/org/simgrid/surf/LmmVariable.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/Model.java b/src/bindings/java/org/simgrid/surf/Model.java index 3e6e7f8eb3..f0da14822e 100644 --- a/src/bindings/java/org/simgrid/surf/Model.java +++ b/src/bindings/java/org/simgrid/surf/Model.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/NetworkAction.java b/src/bindings/java/org/simgrid/surf/NetworkAction.java index c1b758dc68..76d3ae87cc 100644 --- a/src/bindings/java/org/simgrid/surf/NetworkAction.java +++ b/src/bindings/java/org/simgrid/surf/NetworkAction.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/NetworkLink.java b/src/bindings/java/org/simgrid/surf/NetworkLink.java index a787a8bd4f..5e61e7f7de 100644 --- a/src/bindings/java/org/simgrid/surf/NetworkLink.java +++ b/src/bindings/java/org/simgrid/surf/NetworkLink.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/Plugin.java b/src/bindings/java/org/simgrid/surf/Plugin.java index c3d5f5c6ee..957a707a22 100644 --- a/src/bindings/java/org/simgrid/surf/Plugin.java +++ b/src/bindings/java/org/simgrid/surf/Plugin.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/Resource.java b/src/bindings/java/org/simgrid/surf/Resource.java index 4091eb538f..77e8bf9597 100644 --- a/src/bindings/java/org/simgrid/surf/Resource.java +++ b/src/bindings/java/org/simgrid/surf/Resource.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/ResourceState.java b/src/bindings/java/org/simgrid/surf/ResourceState.java index 830373445a..728d4f4155 100644 --- a/src/bindings/java/org/simgrid/surf/ResourceState.java +++ b/src/bindings/java/org/simgrid/surf/ResourceState.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/RoutingEdge.java b/src/bindings/java/org/simgrid/surf/RoutingEdge.java index 36b117a511..a112d4bb10 100644 --- a/src/bindings/java/org/simgrid/surf/RoutingEdge.java +++ b/src/bindings/java/org/simgrid/surf/RoutingEdge.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/Surf.java b/src/bindings/java/org/simgrid/surf/Surf.java index b4ef317ae5..4165404e83 100644 --- a/src/bindings/java/org/simgrid/surf/Surf.java +++ b/src/bindings/java/org/simgrid/surf/Surf.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/SurfJNI.java b/src/bindings/java/org/simgrid/surf/SurfJNI.java index 53cc07e823..75cde87898 100644 --- a/src/bindings/java/org/simgrid/surf/SurfJNI.java +++ b/src/bindings/java/org/simgrid/surf/SurfJNI.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/TmgrTrace.java b/src/bindings/java/org/simgrid/surf/TmgrTrace.java index 1c7555fa45..9402242bb2 100644 --- a/src/bindings/java/org/simgrid/surf/TmgrTrace.java +++ b/src/bindings/java/org/simgrid/surf/TmgrTrace.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/TmgrTraceEvent.java b/src/bindings/java/org/simgrid/surf/TmgrTraceEvent.java index d3f1f7e7a8..08eee1d0a2 100644 --- a/src/bindings/java/org/simgrid/surf/TmgrTraceEvent.java +++ b/src/bindings/java/org/simgrid/surf/TmgrTraceEvent.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/org/simgrid/surf/XbtDict.java b/src/bindings/java/org/simgrid/surf/XbtDict.java index dbbc370a72..71450b422d 100644 --- a/src/bindings/java/org/simgrid/surf/XbtDict.java +++ b/src/bindings/java/org/simgrid/surf/XbtDict.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/src/bindings/java/surf.i b/src/bindings/java/surf.i index 1c61df50a5..e5721c5b3a 100644 --- a/src/bindings/java/surf.i +++ b/src/bindings/java/surf.i @@ -166,15 +166,15 @@ JAVA_ARRAYSOFCLASSES(NetworkLink); long l = xbt_dynar_length($1); $result = jenv->NewDoubleArray(l); double *lout = (double *)xbt_dynar_to_array($1); - jenv->SetDoubleArrayRegion($result, 0, l, (const jdouble*)lout); - free(lout); + jenv->SetDoubleArrayRegion($result, 0, l, (jdouble*)lout); + free(:); } %typemap(javadirectorin) DoubleDynar "$jniinput" %typemap(directorin,descriptor="[D") DoubleDynar %{ long l = xbt_dynar_length($1); $input = jenv->NewDoubleArray(l); double *lout = (double *)xbt_dynar_to_array($1); - jenv->SetDoubleArrayRegion($input, 0, l, (const jdouble*)lout); + jenv->SetDoubleArrayRegion($input, 0, l, (jdouble*)lout); free(lout); %} %typemap(javain) DoubleDynar "$javainput" diff --git a/src/bindings/java/surfJAVA_wrap.cxx b/src/bindings/java/surfJAVA_wrap.cxx index 32b867520f..26157afabc 100644 --- a/src/bindings/java/surfJAVA_wrap.cxx +++ b/src/bindings/java/surfJAVA_wrap.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -1569,7 +1569,7 @@ Cpu *SwigDirector_CpuModel::createCpu(char const *name, DoubleDynar power_peak, long l = xbt_dynar_length(power_peak); jpower_peak = jenv->NewDoubleArray(l); double *lout = (double *)xbt_dynar_to_array(power_peak); - jenv->SetDoubleArrayRegion(jpower_peak, 0, l, (const jdouble*)lout); + jenv->SetDoubleArrayRegion(jpower_peak, 0, l, (jdouble*)lout); free(lout); jpstate = (jint) pstate; diff --git a/src/bindings/java/surfJAVA_wrap.h b/src/bindings/java/surfJAVA_wrap.h index 065713a2d6..54faa7d29f 100644 --- a/src/bindings/java/surfJAVA_wrap.h +++ b/src/bindings/java/surfJAVA_wrap.h @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.11 + * Version 2.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make