harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r549415 - in /harmony/enhanced/classlib/branches/java6/modules/sql/src: main/java/java/sql/Connection.java test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
Date Thu, 21 Jun 2007 07:37:48 GMT
Author: tonywu
Date: Thu Jun 21 00:37:47 2007
New Revision: 549415

URL: http://svn.apache.org/viewvc?view=rev&rev=549415
Log:
interface java.sql.Connection: implements java.sql.Wrapper in jdk6, but doesn't implement
java.sql.Wrapper in jdk15 

Modified:
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java?view=diff&rev=549415&r1=549414&r2=549415
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
Thu Jun 21 00:37:47 2007
@@ -24,7 +24,7 @@
  * statements and results are returned within the context of a connection.
  * 
  */
-public interface Connection {
+public interface Connection extends Wrapper{
 
     /**
      * A constant indicating that transactions are not supported.

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java?view=diff&rev=549415&r1=549414&r2=549415
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
Thu Jun 21 00:37:47 2007
@@ -173,4 +173,12 @@
 
     public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
     }
+
+    public boolean isWrapperFor(Class<?> iface) throws SQLException {
+        return false;
+    }
+
+    public <T> T unwrap(Class<T> iface) throws SQLException {
+        return null;
+    }
 }



Mime
View raw message