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]

Bug when returning #!null from function


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 




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