Q about libjava, JNI, and CNI

Bryce McKinlay mckinlay@redhat.com
Tue Jun 29 08:31:00 GMT 2004


Jerry Quinn wrote:
>Perusing the library code, I noticed that a lot of it is now
>implemented in JNI as opposed to CNI. Is there a set policy of no
>longer using CNI to implement native portions of the runtime?
>>
No. A decision was made to implement the GTK AWT peers in JNI, as 
opposed to CNI, because the advantages of being able to share the 
development effort with other runtimes was seen to outweigh the ease & 
performance advantages of CNI. In other areas, however, particularly 
where performance is important or where a method must interface with the 
native parts of the runtime, CNI is still encouraged. This does not mean 
JNI is not allowed, but the decision would have to be made on a case by 
case basis.
Regards
Bryce


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /