You are not logged in

Compilation fails in a Java 5 environment, because gnu.crypto.sasl.ClientMechanism, ServerMechanism and various derived classes declare that they throw a IllegalSaslStateException in getNegotiatedProperty. However, the interfaces that come with Java 5 don't declare this exception, instead suggesting that the method throws an IllegalStateException.

To get the code to compile, it should be sufficient to make IllegalSaslStateException derive from IllegalStateException instead of SaslException. However, this change would probably cause runtime errors, as current internal usage of this methods is likely to depend on the current hierarchy. (E.g. SaslInputStream declares an IOException to be thrown from its constructor - which won't happen if IOException is no longer a superclass of IllegalSaslStateException.)