From: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Date: Mon, 17 May 2010 00:15:23 +0200
Subject: [PATCH] Disable SQL exceptions
---
.../standard/tag/common/sql/DataSourceWrapper.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
--- a/appserv-jstl/src/org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.java
+++ b/appserv-jstl/src/org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.java
@@ -149,5 +149,19 @@
throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
}
+ /**
+ * Always throws a SQLException. Not supported.
+ */
+ public <T> T unwrap(Class<T> iface) throws SQLException {
+ throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
+ }
+
+ /**
+ * Always throws a SQLException. Not supported.
+ */
+ public boolean isWrapperFor(Class<?> iface) throws SQLException {
+ throw new SQLException(Resources.getMessage("NOT_SUPPORTED"));
+ }
+
}