summaryrefslogtreecommitdiff
path: root/pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-19 15:46:05 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-19 15:46:05 -0300
commit5e01aa6c69f029cc496c9a39ecf282e363ef7536 (patch)
tree43445cfdcd7fcce831c5625b813b4d0df7a9d770 /pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch
parent75a1023b02f9d1379784c0bf0cc174c092191ba6 (diff)
parent7f5844a3c0e8a803a359a4f385d35541176ce54b (diff)
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch')
-rw-r--r--pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch b/pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch
new file mode 100644
index 000000000..27540b466
--- /dev/null
+++ b/pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch
@@ -0,0 +1,29 @@
+--- avalon-logkit-2.1.orig/src/java/org/apache/log/output/db/DefaultDataSource.java 2005-08-29 21:03:49.000000000 -0500
++++ avalon-logkit-2.1/src/java/org/apache/log/output/db/DefaultDataSource.java 2015-12-18 17:50:14.339611623 -0500
+@@ -20,7 +20,9 @@
+ import java.sql.Connection;
+ import java.sql.DriverManager;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import javax.sql.DataSource;
++import java.util.logging.Logger;
+
+ /**
+ * A basic datasource that doesn't do any pooling but just wraps
+@@ -111,4 +113,16 @@
+ {
+ m_logWriter = logWriter;
+ }
++
++ public boolean isWrapperFor(Class cls) {
++ return false;
++ }
++
++ public Object unwrap(Class cls) throws SQLException {
++ throw new SQLException("Not a wrapper for " + cls);
++ }
++
++ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
++ throw new SQLFeatureNotSupportedException("Not a supported feature");
++ }
+ }