提交 f8f360fe authored 作者: noelgrandin's avatar noelgrandin

when overriding finalize(), we should leave visibility at protected

上级 b901141f
...@@ -1371,7 +1371,7 @@ public abstract class TestBase { ...@@ -1371,7 +1371,7 @@ public abstract class TestBase {
Class<?> c = obj.getClass(); Class<?> c = obj.getClass();
InvocationHandler ih = new InvocationHandler() { InvocationHandler ih = new InvocationHandler() {
private Exception called = new Exception("No method called"); private Exception called = new Exception("No method called");
public void finalize() { protected void finalize() {
if (called != null) { if (called != null) {
called.printStackTrace(System.err); called.printStackTrace(System.err);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论