提交 603aa22d authored 作者: noelgrandin's avatar noelgrandin

since I made Engine have a private constructor, I should invoke the getInstance method reflectively

上级 c725592b
......@@ -330,7 +330,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
}
if (sessionFactory == null) {
sessionFactory = (SessionFactory) Class.forName(
"org.h2.engine.Engine").newInstance();
"org.h2.engine.Engine").getMethod("getInstance").invoke(null);
}
return sessionFactory.createSession(ci);
} catch (Exception re) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论