[postgis-java] 07/08: Add patch to declare SQLException to fix build failure.

Bas Couwenberg sebastic at debian.org
Fri Jul 29 09:19:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository postgis-java.

commit dd92448cb7714cbf57795a94362b16203d3a38bd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jul 29 10:40:38 2016 +0200

    Add patch to declare SQLException to fix build failure.
---
 debian/changelog                  |  1 +
 debian/patches/series             |  1 +
 debian/patches/sqlexception.patch | 23 +++++++++++++++++++++++
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ba8c4a3..0bd7717 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ postgis-java (1:2.2.1-1) UNRELEASED; urgency=medium
   * Bump Standards-Version to 3.9.8, no changes.
   * Refresh patches.
   * Update maven.rules for postgresql-jdbc.
+  * Add patch to declare SQLException to fix build failure.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 29 Jul 2016 08:40:00 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
index 9bcf1f7..6d1b2ca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 add-classpath.patch
 upstream-version.patch
+sqlexception.patch
diff --git a/debian/patches/sqlexception.patch b/debian/patches/sqlexception.patch
new file mode 100644
index 0000000..76675b7
--- /dev/null
+++ b/debian/patches/sqlexception.patch
@@ -0,0 +1,23 @@
+Description: Declare SQLException to fix build failure.
+ .
+ [ERROR] /<path>/jdbc/src/main/java/org/postgis/DriverWrapper.java:[189,32]
+ unreported exception java.sql.SQLException; must be caught or declared to be thrown
+ .
+ Reverts: https://github.com/postgis/postgis-java/commit/1c3f9362488c0d8a195802a00e62725f3830797c
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/jdbc/src/main/java/org/postgis/DriverWrapper.java
++++ b/jdbc/src/main/java/org/postgis/DriverWrapper.java
+@@ -179,8 +179,10 @@ public class DriverWrapper extends Drive
+      * @see java.sql.Driver#acceptsURL
+      * @param url the URL of the driver
+      * @return true if this driver accepts the given URL
++     * @exception SQLException Passed through from the underlying PostgreSQL
++     *                driver, should not happen.
+      */
+-    public boolean acceptsURL(String url) {
++    public boolean acceptsURL(String url) throws SQLException {
+         try {
+             url = mangleURL(url);
+         } catch (SQLException e) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis-java.git



More information about the Pkg-grass-devel mailing list