gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Crypto] gnu-crypto can't compile with sun's jdk 1.5.0?


From: Casey Marshall
Subject: Re: [GNU Crypto] gnu-crypto can't compile with sun's jdk 1.5.0?
Date: Sat, 02 Apr 2005 09:22:06 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

>>>>> "Andy" == Andy Lutomirski <address@hidden> writes:

Andy> Hi-
Andy> I can't get gnu-crypto to compile on sun's jdk 1.5.0 (even with
Andy> -source 1.4 -target 1.4).  I'm using amd64.  It works find with
Andy> blackdown's jdk.

The reason for this is because the 1.5 JDK has the javax.security.sasl
package in the standard library, and it seems that that specification
and the one GNU Crypto uses has diverged somewhat.

Take the 'SaslClient.getNegotiatedProperty' method. In GNU Crypto's
implementation, this method's signature is

   Object getNegotiatedProperty(String) throws SaslException;

But in the J2SE 1.5 API, it is

   Object getNegotiatedProperty(String);

And is declared to throw an IllegalStateException in the case of an
error.

GNU Crypto's version of this API should be updated to be compatible
with the one in the JDK. In the meantime, probably the only way to
avoid this error is to omit the Jar with the SASL package from the
compile classpath.

-- 
Casey Marshall || address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]