Robert A Duff a �crit dans le message : wcc66w4rcy5.fsf@world.std.com... > Florian Weimer writes: > > > Does this mean that that the finalization of local variables is > > non-deterministic in Java? Ugh. > > Yes. Finalization happens in Java whenever the garbage collector gets > around to noticing that it's needed. > It's even worse. The finalization routine is allowed to resurect the object (for example, by assigning it to some live variable), however it is guaranteed that in that case, finalization will *not* be invoked again, when the object becomes inaccessible for the second time. -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog