HHH-7283 hibernate is not compilable on JDK7

This commit is contained in:
Strong Liu 2012-04-27 17:27:34 +08:00
parent 016ce8649e
commit 01621d3bb5
1 changed files with 7 additions and 0 deletions

View File

@ -28,7 +28,9 @@ import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;
import org.junit.AfterClass;
import org.junit.Test;
@ -146,6 +148,11 @@ public class DriverManagerRegistrationTest extends BaseUnitTestCase {
public boolean jdbcCompliant() {
return false;
}
public Logger getParentLogger()
throws SQLFeatureNotSupportedException {
throw new SQLFeatureNotSupportedException();
}
}
public static class TestDriver1 extends AbstractTestJdbcDriver {