This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: java.lang.NullPointerException when loading SSAX.scm in kawa-1.7
- From: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- To: kawa at sources dot redhat dot com, stan at altosw dot be
- Date: Tue, 15 Jul 2003 11:54:17 +0200
- Subject: Re: java.lang.NullPointerException when loading SSAX.scm in kawa-1.7
Dear Stan Pinte,
thanks for sending me your kawa+ssax code. I've yet to try it out.
In the meantime, I've hit other bugs in Kawa-1.7 that I can report:
#|kawa:69|# (catch #t (lambda () (+ "abc" 1)) (lambda _ #f))
java.lang.NullPointerException
at gnu.expr.LambdaExp.getReturnType(LambdaExp.java:1548)
at gnu.expr.LambdaExp.addMethodFor(LambdaExp.java:765)
at gnu.expr.LambdaExp.addMethodFor(LambdaExp.java:682)
at gnu.expr.LambdaExp.allocChildClasses(LambdaExp.java:940)
at gnu.expr.Compilation.addClass(Compilation.java:1463)
at gnu.expr.Compilation.compile(Compilation.java:799)
at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:54)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:166)
at kawa.Shell.run(Shell.java:232)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at kawa.Shell.run(Shell.java:154)
at kawa.repl.main(repl.java:609)
#|kawa:70|# (newline (current-error-port))
<unknown>:0: Internal compiler exception: java.lang.NullPointerException
While Kawa-1.6.98 correctly reported:
#|kawa:20|# (catch #t (lambda () (+ "abc" 1)) (lambda _ #f))
Invalid parameter, was: gnu.lists.FString
java.lang.ClassCastException: gnu.lists.FString
at gnu.kawa.functions.AddOp.apply2(AddOp.java:32)
(try-catch (catch #t (lambda () (+ "abc" 1)) (lambda _ #f)) (exc <java.lang.Exception> 6))
worked in 1.6.98 (returns 6) -- another testcase
BTW, while running in Emacs, does anybody know how to get Java/Kawa to immediately flush current-error-port?
Invoking (newline (current-error-port)) by hand is quite annoying (and since the messages come out of sync, I already got confused a few times).
Regards,
Jörg Höhle.