By default, SWIG generates the JNI class with public visibility. Is there a way to specify that the JNI class is only accessible within th开发者_StackOverflow社区e package?
I found a solution. The following will set the visibility to just the package:
%pragma(java) jniclassclassmodifiers="class"
See:
http://www.swig.org/Doc2.0/Java.html#Java_imclass_pragmas
精彩评论