This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Bug when returning #!null from function
- To: kawa at sourceware dot cygnus dot com
- Subject: Bug when returning #!null from function
- From: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Date: Fri, 14 Sep 2001 14:36:40 +0100 (GMT)
I don't think I've noticed this one reported. Compiling
a function that returns #!null:
(define (test)
#!null
)
provokes an
Internal error while compiling test.scm
java.lang.NullPointerException:
at gnu.bytecode.CodeAttr.adjustTypedOp(CodeAttr.java:653)
at gnu.bytecode.CodeAttr.emitTypedOp(CodeAttr.java:659)
at gnu.bytecode.CodeAttr.emitReturn(CodeAttr.java:1527)
at gnu.expr.Compilation.generateApplyMethods(Compiled Code)
at gnu.expr.LambdaExp.compileEnd(LambdaExp.java:533)
at gnu.expr.Compilation.addClass(Compiled Code)
at gnu.expr.Compilation.<init>(Compilation.java:631)
at gnu.expr.ModuleExp.compileToFiles(Compiled Code)
at kawa.lang.CompileFile.compile_to_files(CompileFile.java:137)
at kawa.repl.main(Compiled Code)
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091