This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Bug in 'catch': can't return #!null
- To: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Subject: Re: Bug in 'catch': can't return #!null
- From: Per Bothner <per at bothner dot com>
- Date: Mon, 22 Oct 2001 10:52:39 -0700
- CC: kawa at sourceware dot cygnus dot com
- References: <Pine.LNX.4.10.10110221326300.29046-100000@pop3.ifs.org.uk>
Jocelyn Paine wrote:
>If I have a 'catch' form
> (catch key thunk handler)
>inside a function definition, and the thunk returns the constant #!null,
>the compiler explodes with a null pointer exception. Doesn't happen with
>other constants (though I haven't yet tried all of them).
>
Please give an actual (preferably small) testcase when reporting a bug.
I tried (lambda () (catch 'a (lambda () #!null) (lambda (x) x))) which
worked.
This could be related to a recent check-in where I made the change I
promised:
Basically eval and apply methds now specify 'throws Throwable', which means
primtive-throw and throw no longer need to wrap checked exceptions.
--Per