classpath
[Top][All Lists]
Advanced

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

Re: SWING at OJE


From: Etienne M. Gagnon
Subject: Re: SWING at OJE
Date: Mon, 05 Feb 2001 12:40:48 -0500

> 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: address@hidden
Author of SableCC:                             http://www.sablecc.org/
and SableVM:                                   http://www.sablevm.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]