示例

public class ClassA {{
protected void finalize (int i)
throws Throwable {

super.finalize();
}
}

解决方案
不要重载 finalize() 方法。