Example

protected void finalize() throws Throwable {
System.out.println("Not calling super.finalize()"); //$NON-NLS-1$
}

public static void main(String[] args) {
SuperFinalize_Exemplo sf = new SuperFinalize_Exemplo();
sf = null;
Runtime.getRuntime().gc();
}

Solução
Insira a chamada no super.finalize() como a última instrução no método finalize().

protected void finalize() throws Throwable {
try {
System.out.println("Calling super.finalize()"); //$NON-NLS-1$
} finally {
super .finalize();
}
}

public static void main(String[] args) {
SuperFinalize_Exemplo sf = new SuperFinalize_Exemplo();
sf = null;
Runtime.getRuntime().gc();
}