This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Array marking
- To: hans_boehm at hp dot com (Boehm, Hans)
- Subject: Re: Array marking
- From: Godmar Back <gback at cs dot utah dot edu>
- Date: Mon, 1 May 2000 15:52:58 -0600 (MDT)
- Cc: minyard at acm dot org ('minyard at acm dot org'), hans_boehm at hp dot com (Boehm Hans), bryce at albatross dot co dot nz ('Bryce McKinlay'), jsturm at sigma6 dot com (Jeff Sturm), java-discuss at sourceware dot cygnus dot com
FWIW, there is no "class finalization" in Java. It has been removed
from the language spec quite some time ago.
If you need it, you'll have to use a finalizer of a static field, as in
private static Object finalhelper = new Object() {
protected void finalizer() {
...
}
}
Maybe you're talking about something else though?
- Godmar
>
> If we want classes to be finalized after all their objects, it should be
> possible to get the collector to enforce that.
[...]
> >
> > Since Java has unordered finalizers, is there any reason to expect class
> > finalization to wait until all instances of the class have been finalized?
[...]