提交 739a6b6f authored 作者: Thomas Mueller's avatar Thomas Mueller

Require Java 6

上级 00c0ab12
...@@ -104,7 +104,6 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -104,7 +104,6 @@ public class JdbcConnection extends TraceObject implements Connection {
ci.setBaseDir(baseDir); ci.setBaseDir(baseDir);
} }
} }
checkJavaVersion();
// this will return an embedded or server connection // this will return an embedded or server connection
session = new SessionRemote(ci).connectEmbeddedOrServer(false); session = new SessionRemote(ci).connectEmbeddedOrServer(false);
trace = session.getTrace(); trace = session.getTrace();
...@@ -1095,16 +1094,6 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1095,16 +1094,6 @@ public class JdbcConnection extends TraceObject implements Connection {
// ============================================================= // =============================================================
private static void checkJavaVersion() {
try {
// check for existence of this class (avoiding Class . forName)
Class<?> clazz = java.sql.Savepoint.class;
clazz.getClass();
} catch (NoClassDefFoundError e) {
throw DbException.get(ErrorCode.UNSUPPORTED_JAVA_VERSION);
}
}
/** /**
* Prepare an command. This will parse the SQL statement. * Prepare an command. This will parse the SQL statement.
* *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论