This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: globalizing java object references
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: globalizing java object references
- From: Per Bothner <per at bothner dot com>
- Date: 03 Mar 2000 14:28:57 -0800
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <20000303231111.A22325@strix.eductussyd.se>
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/