提交 28b938b0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Java 1.4

上级 1f4dbf28
......@@ -50,9 +50,9 @@ public class FileObjectDiskMapped implements FileObject {
if (SysProperties.NIO_CLEANER_HACK) {
try {
useSystemGc = false;
Method cleanerMethod = mapped.getClass().getMethod("cleaner");
Method cleanerMethod = mapped.getClass().getMethod("cleaner", new Class[0]);
cleanerMethod.setAccessible(true);
Object cleaner = cleanerMethod.invoke(mapped);
Object cleaner = cleanerMethod.invoke(mapped, new Object[0]);
Method clearMethod = cleaner.getClass().getMethod("clear", new Class[0]);
clearMethod.invoke(cleaner, new Object[0]);
} catch (Throwable e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论