This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Compilation bug again?
- To: kawa@cygnus.com
- Subject: Compilation bug again?
- From: "Walter C. Pelissero" <wcp@lpds.sublink.org>
- Date: Tue, 31 Aug 1999 16:33:41 +0200 (W. Europe Daylight Time)
- Reply-To: wcp@pop.systemy.it
Trying to convert a Java constant to a reasonable Kawa type I tried to
type from the REPL:
((primitive-virtual-method <java.lang.Integer> "intValue" <int> ()) ((primitive-get-static <javax.crypto.Cipher> "DECRYPT_MODE" <int>)))
I got a resonable "2".
But if I define:
(define (cipher:decrypt-mode)
((primitive-virtual-method <java.lang.Integer> "intValue" <int> ()) ((primitive-get-static <javax.crypto.Cipher> "DECRYPT_MODE" <int>))))
and then I use the defined function I get
Argument #0 to `java.lang.Integer.intValue()' has wrong type (gnu.math.IntNum)
at gnu.mapping.WrongType.make(WrongType.java:56)
at cipher_003adecryptMode$lambda0.apply0(Unknown Source)
at kawa.lib.syntax$dynamicWind.apply(syntax.scm:27)
at cipher_003adecryptMode.apply(Unknown Source)
at cipher_003adecryptMode.apply0(Unknown Source)
at gnu.mapping.Procedure0.applyN(Procedure0.java:49)
at gnu.expr.ApplyExp.eval(Compiled Code)
at gnu.expr.ModuleExp.evalModule(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.Shell.run(Shell.java:31)
at kawa.Shell.run(Shell.java:18)
at kawa.repl.main(Compiled Code)
Looks again something related to compilation, doesn't it?