Re: JavaMemoryModel: A problematical case for finalizers

From: Joshua Bloch (joshua.bloch@sun.com)
Date: Tue May 20 2003 - 02:51:45 EDT


Hans,

>2) Convince authors to fix Java textbooks.
>
>Some of the finalizer-related discussion in current textbooks is so far
>off track that I would expect a lot of existing code that uses finalizers
>to be in need of repair no matter what we do. (E.g. at least one recommends
>that finalizers be used to clear circular references to make life easier
>for the garbage collector. I haven't seen any textbook discussion
>of finalizers that I think would be adequate to teach correct usage.
>
>
I have: avoid finalizers. I know that you and I disagree on this one.

                          Josh

-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:44 EDT