This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Using Java objects from C++
- From: Tom Tromey <tromey at redhat dot com>
- To: Dave Menendez <dave at sycamorehq dot com>
- Cc: java at gcc dot gnu dot org
- Date: 04 May 2004 10:31:15 -0600
- Subject: Re: Using Java objects from C++
- References: <1083610045.5079.48.camel@localhost.localdomain>
- Reply-to: tromey at redhat dot com
>>>>> "Dave" == Dave Menendez <dave@sycamorehq.com> writes:
Dave> P.S. One more thing, I was a bit mystified when I read in the mailing
Dave> list that even though I use "new" to allocate a Java object from C++,
Dave> I'm not supposed to call "delete" to get rid of it, but that it somehow
Dave> automagically gets collected by the GC.
Note that there's a twist -- you can't use "new" to allocate a Java
array, you must use one of the CNI functions for this instead.
There's a PR on this.
Tom