This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]