[hdf5] 02/04: java: new patch java-runtime-exception.patch

Gilles Filippini pini at debian.org
Tue Nov 29 09:26:49 UTC 2016


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

pini pushed a commit to branch master-1.10
in repository hdf5.

commit a45e5cefde4b3ed9b09ecad6f7811bb5097a1d0c
Author: Gilles Filippini <pini at debian.org>
Date:   Thu Nov 24 23:16:20 2016 +0100

    java: new patch java-runtime-exception.patch
    
    Define HDF5Exeption as unchecked (subclass of RuntimeException).
---
 debian/changelog                            |  2 ++
 debian/patches/java-runtime-exception.patch | 13 +++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b87be5f..3999065 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ hdf5 (1.10.0-patch1+docs-2~exp1) experimental; urgency=medium
 
   * New binary packages for the java wrapper library which is now
     integrated into the HDF5 source tree: libhdf5-java and libhdf5-jni
+  * New patch java-runtime-exception.patch to define HDF5Exception as
+    a subclass of RuntimeException, to make it an unchecked exception
 
  -- Gilles Filippini <pini at debian.org>  Thu, 03 Nov 2016 20:37:50 +0100
 
diff --git a/debian/patches/java-runtime-exception.patch b/debian/patches/java-runtime-exception.patch
new file mode 100644
index 0000000..e0c9972
--- /dev/null
+++ b/debian/patches/java-runtime-exception.patch
@@ -0,0 +1,13 @@
+Index: hdf5/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
+===================================================================
+--- hdf5.orig/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
++++ hdf5/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
+@@ -32,7 +32,7 @@ package hdf.hdf5lib.exceptions;
+  * error code returned by the HDF5 library.
+  *
+  */
+-public class HDF5Exception extends Exception {
++public class HDF5Exception extends RuntimeException {
+     protected String detailMessage;
+ 
+     /**
diff --git a/debian/patches/series b/debian/patches/series
index ec125b1..bd5dc24 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ CVE-2016-4331-1.patch
 CVE-2016-4331-2.patch
 CVE-2016-4332.patch
 CVE-2016-4333.patch
+java-runtime-exception.patch

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



More information about the Pkg-grass-devel mailing list