> JNI is incomplete. It has no C/C++ methods to set and get individual native
> methods. Instead of a C structure like JNINativeMethod, I would like to see
> a NativeMethod class in C++.
>
> class NativeMethod {
> public:
> NativeMethod(
> const char *name,
> const char *signature,
> const void *fnPtr );
>
> const char *getName() const;
> const char *getSignature() const;
> const void *fnPtr() const;
> // *A! invoke();
> :
> };
Yes JNI doesn't cater for this. But it is easy to build a list of all the
native methods for a class (with a structure like you just described).
When a ACC_NATIVE attribute is discovered, you could put a pointer to the
JNI method / Optimised method (by JIT for example) directly into the
Method structure.
John
_______________________________________________
Kernel maillist - [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel