提交 adabda79 authored 作者: Thomas Mueller's avatar Thomas Mueller

This database no longer uses finalize() except for temporary files. The system…

This database no longer uses finalize() except for temporary files. The system property "h2.runFinalize" is no longer supported. Unclosed connections are still detected, but the opening stack trace is now collected only if connections are not closed repeatedly (starting with the second unclosed connection).
上级 7c2c82c4
...@@ -135,6 +135,10 @@ public class FileStoreInputStream extends InputStream { ...@@ -135,6 +135,10 @@ public class FileStoreInputStream extends InputStream {
} }
} }
protected void finalize() {
close();
}
public int read() throws IOException { public int read() throws IOException {
fillBuffer(); fillBuffer();
if (endOfFile) { if (endOfFile) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论