commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r1429538 - /commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java
Date Sun, 06 Jan 2013 15:12:42 GMT
Author: niallp
Date: Sun Jan  6 15:12:42 2013
New Revision: 1429538

URL: http://svn.apache.org/viewvc?rev=1429538&view=rev
Log:
DBUTILS-106 - Fix DBUtils can't build using JDK 1.7 - DriverProxy needs to implement getParentLogger()

Modified:
    commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java

Modified: commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java?rev=1429538&r1=1429537&r2=1429538&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java (original)
+++ commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/DbUtils.java Sun
Jan  6 15:12:42 2013
@@ -25,7 +25,9 @@ import java.sql.Driver;
 import java.sql.DriverPropertyInfo;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.Statement;
+import java.util.logging.Logger;
 import java.util.Properties;
 
 /**
@@ -395,6 +397,13 @@ public final class DbUtils {
             return adapted.jdbcCompliant();
         }
 
+        /**
+         * Java 1.7 method.
+         */
+        public Logger getParentLogger() throws SQLFeatureNotSupportedException {
+            throw new SQLFeatureNotSupportedException();
+        }
+
     }
 
 }



Mime
View raw message