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]

compile error


Hi,

this function does not compile with kawa:

(define (my-func)
 (object
  ()
  (any-field
   init-value:
   (object ()
       ((any-method) (any-function)))
   )))

following is the compiler stack trace

wowa at src$ kawa -C bug.scm
(compiling bug.scm)
java.lang.NullPointerException
   at gnu.bytecode.CodeAttr.emitLoad(CodeAttr.java:1046)
   at gnu.expr.ObjectExp.compile(ObjectExp.java:32)
   at gnu.expr.Expression.compile(Expression.java:92)
   at gnu.expr.SetExp.compile(SetExp.java:252)
   at gnu.expr.Expression.compileWithPosition(Expression.java:72)
   at gnu.expr.BeginExp.compile(BeginExp.java:79)
   at gnu.expr.Expression.compileWithPosition(Expression.java:72)
...

Note: If `any-function' is defined in the same module as `my-func', compilation completes with no errors.

Regards,

Vladimir


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