From: Brian G. <br...@qu...> - 2003-07-15 18:46:11
|
>Also, won't leaving context tool cleanup to the GC possibly leave some >things dangling / make CTs harder to write? i.e. imagine a CT that opens a >file and closes it in cleanup... Yes, but this is a mostly theoretical concern. Of the 10 or so context tools in the WM distro, only 1 had a non-empty destroy() method, and that one was only needed to recycle a Context, which is no longer needed as these are now garbage collected. So in the odd case you talk about, use finalizers, but so far, none have needed to. -- Brian Goetz Quiotix Corporation br...@qu... Tel: 650-843-1300 Fax: 650-324-8032 http://www.quiotix.com |