This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Array marking



 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?

[...]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]