From 87394a2daf751cff5cbe52cc99b4868b15b509c0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 25 Jan 2008 22:01:55 +0000 Subject: [PATCH] Fix ARRAYSOFCLASSES bug reported by Kevin Mills where the changes made to an array element in the C layer are not reflected back into Java git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10219 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 5 +++++ Lib/java/arrays_java.i | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index 7174692d2..2566ed8eb 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,11 @@ Version 1.3.34 (in progress) ============================ +01/25/2008: wsfulton + [Java] Fix bug reported by Kevin Mills in ARRAYSOFCLASSES typemaps where any + changes made to an array element passed from Java to C are not reflected back + into Java. + 01/24/2008: mgossage More updates to the configure script for detecting lua. Also looks in /usr/include/lua* diff --git a/Lib/java/arrays_java.i b/Lib/java/arrays_java.i index fd84066b3..95510c3f9 100644 --- a/Lib/java/arrays_java.i +++ b/Lib/java/arrays_java.i @@ -232,7 +232,8 @@ JAVA_ARRAYS_TYPEMAPS(double, double, jdouble, Double, "[D") /* double[ANY] * /* Arrays of proxy classes. The typemaps in this macro make it possible to treat an array of * class/struct/unions as an array of Java classes. * Use the following macro to use these typemaps for an array of class/struct/unions called name: - * JAVA_ARRAYSOFCLASSES(name) */ + * JAVA_ARRAYSOFCLASSES(name) + * Note that multiple copies of the class/struct is made when using the array as a parameter input. */ %define JAVA_ARRAYSOFCLASSES(ARRAYSOFCLASSES) %typemap(jni) ARRAYSOFCLASSES[ANY], ARRAYSOFCLASSES[] "jlongArray" @@ -304,8 +305,7 @@ JAVA_ARRAYS_TYPEMAPS(double, double, jdouble, Double, "[D") /* double[ANY] * { int i; for (i=0; i