From 01621d3bb565464e7eb037d2ca90450fa4b77bce Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Fri, 27 Apr 2012 17:27:34 +0800 Subject: [PATCH] HHH-7283 hibernate is not compilable on JDK7 --- .../connection/DriverManagerRegistrationTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/connection/DriverManagerRegistrationTest.java b/hibernate-core/src/test/java/org/hibernate/connection/DriverManagerRegistrationTest.java index a8a8583dc0..bb91d5c66f 100644 --- a/hibernate-core/src/test/java/org/hibernate/connection/DriverManagerRegistrationTest.java +++ b/hibernate-core/src/test/java/org/hibernate/connection/DriverManagerRegistrationTest.java @@ -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 {