Package: glassfish / 1:2.1.1-b31g+dfsg1-2

0003-Disable-SQL-exceptions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"));
+    }
+
 
 }