As someone else mentioned the test code did work for me with jdk1.1.7 v1a
with java, but not with jre.
Just wanted to add, that,
when I added a System.exit( 0 ) call to main, jre does work for me.
Bye,
Clemes
Changed test example:
public class F
{
protected void finalize() throws Throwable
{
System.out.println("finalize");
super.finalize();
}
public static void main(String[] args) throws Throwable
{
F f = new F();
System.runFinalizersOnExit(true);
Runtime.getRuntime().runFinalizersOnExit(true);
f = null;
System.gc();
System.exit( 0 );
~~~~~~~~~~~~~~~~~
}
}