This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java vs ia64 abi exceptions
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: java vs ia64 abi exceptions
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 22 Mar 2001 15:23:18 +1200
- CC: Andrew Haley <aph at redhat dot com>, java at gcc dot gnu dot org
- References: <20010321174200.A4702@redhat.com>
Richard Henderson wrote:
> There does not appear to be any way to do catch-all except
> catch(Throwable), which isn't going to interoperate with
> exceptions generated by other languages. If interoperability
> were desired (apart from finally) we'd need to get either the
> compiler or the runtime to call _Unwind_DeleteException when
> the catch handler is complete. I don't plan on doing that
> right away.
As far as interoperability goes, we definatly need to be able to throw
Java exceptions from C++ (this works already). It would also be
desirable for Java exceptions thrown from Java to be able to be caught
in C++.
Java doesn't want to know about exceptions that don't extend
Throwable, but I guess non-java exceptions thrown from C++ should be
able to pass through Java frames and be caught in C++, and in that
case Java "finally" semantics should probibly be preserved. It seems
unlikely that much real-world code will actually care about this,
though ;-)
regards
[ bryce ]