Archie Cobbs wrote:
> Jeroen Frijters wrote:
> >>Would it be possible to keep a list of weak references and 
> use one of
> >>those magic queue things that notifies you when your objects become
> >>unreachable?
> > 
> > Yeah, we could use a phantom reference to clean up.
> 
> Just to be clear: a weak reference would suffice, right?
> I.e. a phantom reference is not required.

I think that to be strictly correct you need a phantom reference.
Consider the following (pathological) example:

class MyThread extends Thread
{
  protected void finalize()
  {
    start();
  }
}

Regards,
Jeroen


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to