Příklad

protected void finalize() throws Throwable {
System.out.println("Volá se RunFinalizersInExit finalize"); //$NON-NLS-1$
super .finalize();
}

public static void main(String[] args){
RunFinalizersOnExit_Example rfoe = new RunFinalizersOnExit_Example();
Runtime.runFinalizersOnExit(true);
}

Řešení
Odeberte toto volání a nechte úlohu na kolektoru čištění.