Fix Java multi-argument typemaps (char *STRING, size_t LENGTH)

Now they can be applied to a wider range of types.
Closes #385.
This commit is contained in:
William S Fulton 2015-05-10 13:35:51 +01:00
commit 6c1630b152
4 changed files with 30 additions and 0 deletions

View file

@ -1348,6 +1348,7 @@ SWIG_PROXY_CONSTRUCTOR(true, true, SWIGTYPE)
%typemap(directorargout) (char *STRING, size_t LENGTH)
%{(jenv)->GetByteArrayRegion($input, 0, $2, (jbyte *)$1);
(jenv)->DeleteLocalRef($input);%}
%typemap(javadirectorin, descriptor="[B") (char *STRING, size_t LENGTH) "$jniinput"
%apply (char *STRING, size_t LENGTH) { (char *STRING, int LENGTH) }
/* java keywords */