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]

Internal compilation error (kawa 1.6.99)


I've found a condition which causes an internal compiler error in kawa.
Please ask if 'yall could use more code than that provided.

Thanks!


75:(define-constant actions
76:  (list
77:   (cons
78:    ACTION_SUBMIT_COMMENT
79:    (lambda (request :: <javax.servlet.http.HttpServletRequest>
80:             session :: <javax.servlet.http.HttpSession>)
81:      (let ((comment-text :: <string> (invoke request 'getParameter PARM_COMMENT_TEXT))
82:	       (current-user :: <string> (invoke session 'getAttribute ATTR_USERNAME))
83:	       (target-changeid :: <string> (invoke request 'getParameter PARM_CURRENT_CHANGE)))
84:        (let ((target-change :: <com.mvista.changesys.om.Change> (get-change-by-changeid target-changeid)))
85:          (change-add-comment target-change current-user comment-text)))))))

causes

$ kawa -C servlet.scm
(compiling servlet.scm)
servlet.scm:84:3: internal error while compiling - caught: java.lang.NullPointerException
java.lang.NullPointerException
        at gnu.bytecode.CodeAttr.emitLoad(CodeAttr.java:1033)
        at gnu.expr.LambdaExp.loadHeapFrame(LambdaExp.java:421)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:227)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
        at gnu.expr.LetExp.compile(LetExp.java:65)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.LetExp.compile(LetExp.java:73)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1333)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1307)
        at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:520)
        at gnu.expr.LambdaExp.compile(LambdaExp.java:613)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.PrimProcedure.compileArgs(PrimProcedure.java:332)
        at gnu.expr.PrimProcedure.compile(PrimProcedure.java:362)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:168)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
        at gnu.kawa.functions.MakeList.compile(MakeList.java:49)
        at gnu.kawa.functions.MakeList.compile(MakeList.java:33)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:149)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
        at gnu.expr.Expression.compile(Expression.java:93)
        at gnu.expr.SetExp.compile(SetExp.java:240)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.kawa.functions.AppendValues.compile(AppendValues.java:49)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:182)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
        at gnu.expr.Expression.compileWithPosition(Expression.java:72)
        at gnu.expr.BeginExp.compile(BeginExp.java:80)
        at gnu.expr.Expression.compileWithPosition(Expression.java:72)
        at gnu.expr.LetExp.compile(LetExp.java:73)
        at gnu.expr.Expression.compileWithPosition(Expression.java:72)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1333)
        at gnu.expr.Compilation.addClass(Compilation.java:1296)
        at gnu.expr.Compilation.<init>(Compilation.java:740)
        at gnu.expr.ModuleExp.compileToFiles(ModuleExp.java:277)
        at kawa.lang.CompileFile.compile_to_files(CompileFile.java:91)
        at kawa.repl.processArgs(repl.java:389)
        at kawa.repl.main(repl.java:584)

Attachment: signature.asc
Description: This is a digitally signed message part


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