You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/03/04 14:42:12 UTC

[commons-jelly] 01/03: Fix compiling on Java 7 and up

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git

commit 1b94d1eeeedb87476ace86d28c4bb83d3ed17953
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Mar 4 09:38:58 2023 -0500

    Fix compiling on Java 7 and up
    
    Implement Java 7 abstract method
    javax.sql.CommonDataSource.getParentLogger()
---
 .../java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java  | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/jelly-tags/sql/src/main/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java b/jelly-tags/sql/src/main/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java
index 1e8d5bef..1f1f946f 100644
--- a/jelly-tags/sql/src/main/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java
+++ b/jelly-tags/sql/src/main/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java
@@ -21,6 +21,8 @@ import java.io.PrintWriter;
 import java.sql.Connection;
 import java.sql.DriverManager;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.util.logging.Logger;
 
 import javax.sql.DataSource;
 
@@ -141,4 +143,9 @@ public class DataSourceWrapper implements DataSource {
         throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
     }
 
+    @Override
+    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
+        throw new SQLFeatureNotSupportedException();
+    }
+
 }