Must all the methods that are native be also static??
+2
A:
No, native methods can be non-static
. In fact, here is a JNI tutorial which shows how to natively implement a non-static
method.
Daniel Trebbien
2010-06-21 21:09:06
Daniel Trebbien
2010-06-21 21:13:15
@Daniel - someone who can't work out how to demangle that C code shouldn't be allowed use JNI :-)
Stephen C
2010-06-21 21:59:16