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]

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.


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