2 ms·
Yes, and this was not something that demanded attention because Java originally wanted to discourage the use of native -- and platform specific -- code. So JNI
by pron 12y ago
Yes, and this was not something that demanded attention because Java originally wanted to discourage the use of native -- and platform specific -- code. So JNI was originally thought of as a bridge you build once to your legacy C code, and then move on. Recently, people have been wanting a more liberal use of native 3rd party libraries, so this issue is getting fixed with JNR[1], which will serve as the basis of Java's new FFI being developed under Project Panama[2].
[1]: https://github.com/jnr/jnr-ffi https://github.com/jnr/jnr-ffi
[2]: http://openjdk.java.net/projects/panama/ http://openjdk.java.net/projects/panama/