[bouncycastle] 04/08: Restored the getObjectId() method in AlgorithmIdentifier to preserve the backward compatibility

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Apr 28 22:27:15 UTC 2016


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

ebourg-guest pushed a commit to branch master
in repository bouncycastle.

commit cd9c6904bcf64ba30b81803fbb0a231e97fde058
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Apr 28 23:34:17 2016 +0200

    Restored the getObjectId() method in AlgorithmIdentifier to preserve the backward compatibility
---
 debian/changelog                            |  2 ++
 debian/patches/backward-compatibility.patch | 18 ++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fd6f740..d64054f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ bouncycastle (1.54-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release
     - Refreshed the patches
+    - Restored the getObjectId() method in AlgorithmIdentifier
+      to preserve the backward compatibility.
 
  -- Emmanuel Bourg <ebourg at apache.org>  Thu, 28 Apr 2016 17:25:04 +0200
 
diff --git a/debian/patches/backward-compatibility.patch b/debian/patches/backward-compatibility.patch
new file mode 100644
index 0000000..79d0f42
--- /dev/null
+++ b/debian/patches/backward-compatibility.patch
@@ -0,0 +1,18 @@
+Description: Restore removed methods to preserve the backward compatiblity
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/core/src/main/java/org/bouncycastle/asn1/x509/AlgorithmIdentifier.java
++++ b/core/src/main/java/org/bouncycastle/asn1/x509/AlgorithmIdentifier.java
+@@ -77,6 +77,12 @@
+         return algorithm;
+     }
+ 
++    @Deprecated
++    public ASN1ObjectIdentifier getObjectId()
++    {
++        return algorithm;
++    }
++
+     public ASN1Encodable getParameters()
+     {
+         return parameters;
diff --git a/debian/patches/series b/debian/patches/series
index d4ffed5..9a5b0b8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 02_index.patch
 fix-encoding.patch
+backward-compatibility.patch

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



More information about the pkg-java-commits mailing list