I have C++ code in the form of:

void myfunction(int const &data[16]);


%include <arrays_java.i>
%include <stdint.i>
%apply uint8_t[] { int const &data[16] };

I can get the wrapper to pass through the short[] from java side but it falls flat in the JNI stub where it tries to pass a reference to a pointer to the C++ code.

Has anyone tried something like this?

 - Juha