SOURCES: avalon-logkit-java16.patch (NEW) - buildfix for java 1.6 - found i...

pawelz pawelz at pld-linux.org
Thu Oct 23 19:54:16 CEST 2008


Author: pawelz                       Date: Thu Oct 23 17:54:16 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- buildfix for java 1.6
- found in apache cocoon svn

---- Files affected:
SOURCES:
   avalon-logkit-java16.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/avalon-logkit-java16.patch
diff -u /dev/null SOURCES/avalon-logkit-java16.patch:1.1
--- /dev/null	Thu Oct 23 19:54:17 2008
+++ SOURCES/avalon-logkit-java16.patch	Thu Oct 23 19:54:11 2008
@@ -0,0 +1,30 @@
+--- LogKit-1.2.orig/src/java/org/apache/log/output/db/DefaultDataSource.java	2003-02-10 19:12:55.000000000 +0100
++++ LogKit-1.2/src/java/org/apache/log/output/db/DefaultDataSource.java	2008-10-23 19:46:49.000000000 +0200
+@@ -149,4 +149,27 @@
+     {
+         m_logWriter = logWriter;
+     }
++
++    /**
++     * @param iface
++     * @return
++     * @throws SQLException
++     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
++     */
++    public boolean isWrapperFor(Class iface) throws SQLException {
++       throw new UnsupportedOperationException("This operation is not supported because we need to stay compatible " +
++                                               "with Java 1.4 where isWrapperFor() is not defined");
++    }
++
++    /**
++     * @param iface
++     * @return
++     * @throws SQLException
++     * @see java.sql.Wrapper#unwrap(java.lang.Class)
++     */
++    public Object unwrap(Class iface) throws SQLException {
++    //I hope that nothing will call this method (GK)
++        throw new UnsupportedOperationException("This operation is not supported because we need to stay compatible " +
++       		                                "with Java 1.4 where unwrap() is not defined");
++    }
+ }
================================================================


More information about the pld-cvs-commit mailing list