You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/gnu-crypto/files/gnu-crypto-2.0.1-jdk15.patch

31 lines
1.5 KiB

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();