aboutsummaryrefslogtreecommitdiff
path: root/Examples/java/typemap
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2003-05-02 21:28:31 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2003-05-02 21:28:31 +0000
commitf43fbc6ec3b1e4fd4e370a1b8169c33bee199d5f (patch)
tree427886507a7e176b39bd2a58c58d6ddad1e741e7 /Examples/java/typemap
parent20bf7839669552d7ba794961ea47d99a1b280505 (diff)
downloadswig-f43fbc6ec3b1e4fd4e370a1b8169c33bee199d5f.tar.gz
jni code correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/java/typemap')
-rw-r--r--Examples/java/typemap/example.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/java/typemap/example.i b/Examples/java/typemap/example.i
index a29c717d9..7c97e6673 100644
--- a/Examples/java/typemap/example.i
+++ b/Examples/java/typemap/example.i
@@ -62,7 +62,7 @@ void f2(char *BYTE);
/* Take a copy of the C string as the typemap is for a non const C string */
jmethodID capacityID = (*jenv)->GetMethodID(jenv, sbufClass, "capacity", "()I");
- jint capacity = (jint) (*jenv)->CallObjectMethod(jenv, $input, capacityID);
+ jint capacity = (*jenv)->CallIntMethod(jenv, $input, capacityID);
$1 = (char *) malloc(capacity+1);
strcpy($1, pCharStr);