Patch for Java 1.7

24 views
Skip to first unread message

Jeffrey Hoyt

unread,
Feb 26, 2013, 5:43:21 PM2/26/13
to osj...@googlegroups.com
CommonDataSource has a new abstract method.  This stubs it out.

Index: src/java/org/osjava/sj/loader/SJDataSource.java
===================================================================
--- src/java/org/osjava/sj/loader/SJDataSource.java     (revision 2749)
+++ src/java/org/osjava/sj/loader/SJDataSource.java     (working copy)
@@ -32,12 +32,13 @@
 
 package org.osjava.sj.loader;
 
-import java.sql.Connection;
+import java.sql.*;
 import java.sql.SQLException;
 import javax.sql.DataSource;
 import java.sql.DriverManager;
 import java.io.PrintWriter;
 import java.util.Properties;
+import java.util.logging.Logger;
 
 /**
  * A basic implementation of a DataSource. 
@@ -154,5 +155,9 @@
         throw new SQLException("This object is not a wrapper");
     }
 
+    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
+        throw new SQLFeatureNotSupportedException( "This class does not support this operation." );
 }
 
+}
+

Henri Yandell

unread,
Mar 5, 2013, 10:05:44 PM3/5/13
to osj...@googlegroups.com
Thanks Jeffrey, I've applied the patch :)

Hen
> --
> You received this message because you are subscribed to the Google Groups
> "osjava" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osjava+un...@googlegroups.com.
> To post to this group, send email to osj...@googlegroups.com.
> Visit this group at http://groups.google.com/group/osjava?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages