You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by he...@apache.org on 2006/12/14 14:05:59 UTC

svn commit: r487200 - /velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java

Author: henning
Date: Thu Dec 14 05:05:59 2006
New Revision: 487200

URL: http://svn.apache.org/viewvc?view=rev&rev=487200
Log:
JDK 6 requires a datasource to implement two more methods...


Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java?view=diff&rev=487200&r1=487199&r2=487200
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java Thu Dec 14 05:05:59 2006
@@ -58,12 +58,20 @@
 	return loginTimeout;
     }
 
-    public void setLogWriter(PrintWriter logWriter) throws SQLException {
+    public void setLogWriter(final PrintWriter logWriter) throws SQLException {
 	this.logWriter = logWriter;
     }
 
-    public void setLoginTimeout(int loginTimeout) throws SQLException {
+    public void setLoginTimeout(final int loginTimeout) throws SQLException {
 	this.loginTimeout = loginTimeout;
+    }
+
+    public boolean isWrapperFor(final Class iface) throws SQLException {
+	return false;
+    }
+
+    public Object unwrap(final Class iface) throws SQLException {
+	throw new SQLException("Not implemented");
     }
 
 }



Re: svn commit: r487200 - /velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java

Posted by Will Glass-Husain <wg...@forio.com>.
Beat me to it.  I download 1.6 and started working with it yesterday.

Though first I'm trying to get "ant test" to pass under 1.3

WILL

On 12/14/06, henning@apache.org <he...@apache.org> wrote:
> Author: henning
> Date: Thu Dec 14 05:05:59 2006
> New Revision: 487200
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=487200
> Log:
> JDK 6 requires a datasource to implement two more methods...
>
>
> Modified:
>     velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
>
> Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
> URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java?view=diff&rev=487200&r1=487199&r2=487200
> ==============================================================================
> --- velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java (original)
> +++ velocity/engine/trunk/src/test/org/apache/velocity/test/sql/HsqlDataSource.java Thu Dec 14 05:05:59 2006
> @@ -58,12 +58,20 @@
>         return loginTimeout;
>      }
>
> -    public void setLogWriter(PrintWriter logWriter) throws SQLException {
> +    public void setLogWriter(final PrintWriter logWriter) throws SQLException {
>         this.logWriter = logWriter;
>      }
>
> -    public void setLoginTimeout(int loginTimeout) throws SQLException {
> +    public void setLoginTimeout(final int loginTimeout) throws SQLException {
>         this.loginTimeout = loginTimeout;
> +    }
> +
> +    public boolean isWrapperFor(final Class iface) throws SQLException {
> +       return false;
> +    }
> +
> +    public Object unwrap(final Class iface) throws SQLException {
> +       throw new SQLException("Not implemented");
>      }
>
>  }
>
>
>


-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org