[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Sablevm-developer] [Java-gnome-developer] Re: Java-Gnome: jni or cni



Per Bothner wrote:
...
then a pre-processor can generate the JNI or CNI headers.
 ...

My main worry is that the programmers using these macros might not take
the good approach to JNI programming (which consists of "caching" method
and field ID's) if some macro hides method/field accesses.

Also, from a readability point of view, any Java programmer that uses JNI
regularly will not recognize JNI code [but this is not really critical ;-)].

Etienne
--
Etienne M. Gagnon, Ph.D.             http://www.info.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/



Reply to: