This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Problem with the online CNI manual


>>>>> "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


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