> My pet JNI complaint is the difficulty of maintaining per-object native state.
> It is necessary for writing just about any JNI wrappers over native libraries,
> especially window systems.

This is not difficult.  Simply define a "byte[] data;" field that will
hold the value of a pointer to your native data.  The actual size of
this array will be determined on the native side, based on the
platform's own pointer size.

Etienne

-- 
----------------------------------------------------------------------
Etienne M. Gagnon, M.Sc.                     e-mail: [EMAIL PROTECTED]
Author of SableCC:                             http://www.sablecc.org/
and SableVM:                                   http://www.sablevm.org/

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to