Problem with the online CNI manual

Tom Tromey tromey@redhat.com
Mon Jan 28 21:16:00 GMT 2002


>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

Nic> // Automatic allocation of ht.
Nic> ::java::util::Hashtable ht = ::java::util::Hashtable ();

Bryce> Off-hand I don't know if this will work: I suspect it
Bryce> wont. Finalizers etc certainly wont because the allocation will
Bryce> not go through the GC.

It might work but we don't support it.
ISTR that we actually use this trick in one place in String.
In general though I think we should just disallow this, perhaps in g++
itself.

Tom



More information about the Java mailing list