This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Re: java vs ia64 abi exceptions


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 ]



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