This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Missing Code Attribute with module-export
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Mon, 31 Mar 2003 16:09:44 -0800
- Subject: Missing Code Attribute with module-export
Kawa can produce an empty code attribute when using define-simple-class
in the same file as module-export. This will throw an exception when
the resulting class is loaded:
Exception in thread "main" java.lang.ClassFormatError: Bar (Code
attribute is absent in method that is not abstract or native)
Below is a simple example to reproduce the problem. As a work around
you may comment out the module-export expression, in which case
Bar.class is fine.
Thanks!
Regards,
Chris Dean
(module-export f)
(define-simple-class <Bar> ()
((my-method)
'(result of my method)))
(define (f)
'(some function f))