summaryrefslogtreecommitdiff
path: root/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch')
-rw-r--r--dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch b/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch
new file mode 100644
index 000000000000..47957cc5ec5f
--- /dev/null
+++ b/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch
@@ -0,0 +1,30 @@
+diff -Nur gnu-crypto-2.0.1/source/gnu/crypto/sasl/ClientMechanism.java gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ClientMechanism.java
+--- gnu-crypto-2.0.1/source/gnu/crypto/sasl/ClientMechanism.java 2003-11-21 10:22:10.000000000 +0100
++++ gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ClientMechanism.java 2005-05-24 16:16:37.493727834 +0200
+@@ -140,9 +140,9 @@
+ return mechanism;
+ }
+
+- public Object getNegotiatedProperty(final String propName) throws SaslException {
++ public Object getNegotiatedProperty(final String propName) {
+ if (!isComplete()) {
+- throw new IllegalMechanismStateException();
++ throw new IllegalStateException();
+ }
+ if (Sasl.QOP.equals(propName)) {
+ return getNegotiatedQOP();
+diff -Nur gnu-crypto-2.0.1/source/gnu/crypto/sasl/ServerMechanism.java gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ServerMechanism.java
+--- gnu-crypto-2.0.1/source/gnu/crypto/sasl/ServerMechanism.java 2003-11-21 10:26:14.000000000 +0100
++++ gnu-crypto-2.0.1-new/source/gnu/crypto/sasl/ServerMechanism.java 2005-05-24 16:16:55.503085024 +0200
+@@ -147,9 +147,9 @@
+ return this.authorizationID;
+ }
+
+- public Object getNegotiatedProperty(final String propName) throws SaslException {
++ public Object getNegotiatedProperty(final String propName) {
+ if (!isComplete()) {
+- throw new IllegalMechanismStateException();
++ throw new IllegalStateException();
+ }
+ if (Sasl.QOP.equals(propName)) {
+ return getNegotiatedQOP();