commit | 3863e4a85e4b9bf8fc62a76e44087880323f6880 | [log] [tgz] |
---|---|---|
author | Paul Libbrecht <polx@apache.org> | Sun Jan 25 22:29:50 2009 +0000 |
committer | Paul Libbrecht <polx@apache.org> | Sun Jan 25 22:29:50 2009 +0000 |
tree | 682c3885d1d68ae9f9e4b164bbfbd39c1640d6aa | |
parent | eaf06d934ecc6caee93150684b8c24d43f156729 [diff] |
JDK 1.6 compatibility, thanks to Gump for the warning. paul git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jelly/trunk@737593 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/jelly-tags/sql/src/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java b/jelly-tags/sql/src/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java index cbb7f91..1e8d5be 100644 --- a/jelly-tags/sql/src/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java +++ b/jelly-tags/sql/src/java/org/apache/commons/jelly/tags/sql/DataSourceWrapper.java
@@ -60,6 +60,14 @@ this.jdbcURL = jdbcURL; } + public <T> T unwrap(Class<T> tClass) throws SQLException { + throw new SQLException(Resources.getMessage("NOT_SUPPORTED")); + } + + public boolean isWrapperFor(Class<?> aClass) throws SQLException { + return false; + } + public void setUserName(String userName) { this.userName = userName; }