This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: globalizing java object references


Oskar Liljeblad <osk@hem.passagen.se> writes:

> It may be reasonable to store a reference in each GtkObject to the
> corresponding Java object (if any).

I don't know the details, but the java.awt.peer model is more the
other way round:  Store a pointer to the gtk object in the Java
object.  That is easily done by declaring the non-Java field
in a Java object to have the type gnu.gcj.RawData.

In any case, the key thing is to make sure there is a pointer
that the garbage collector knows about.  That should
not be too difficult.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]