globalizing java object references

Per Bothner per@bothner.com
Sat Apr 1 00:00:00 GMT 2000


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/


More information about the Java mailing list