This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [Sablevm-developer] [Java-gnome-developer] Re: Java-Gnome: jnior cni
- From: Etienne Gagnon <gagnon dot etienne_m at uqam dot ca>
- To: Per Bothner <per at bothner dot com>
- Cc: Anthony Green <green at redhat dot com>, java-gnome-developer at lists dot sourceforge dot net, java at gcc dot gnu dot org, debian-java at lists dot debian dot org, kaffe at kaffe dot org, sablevm-developer at lists dot sourceforge dot net
- Date: Sat, 13 Mar 2004 12:46:21 -0500
- Subject: Re: [Sablevm-developer] [Java-gnome-developer] Re: Java-Gnome: jnior cni
- Organization: UQAM
- References: <20040311174441.GA26451@pathfinderii.chu.cam.ac.uk> <1079045181.3438.175.camel@escape> <4050F515.9030405@bothner.com>
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/