Patch: g++ `catch' and `throw' of Java objects

Tom Tromey tromey@cygnus.com
Mon Feb 28 13:34:00 GMT 2000


>>>>> "Andrew" == Andrew Haley <aph@pasanda.cygnus.co.uk> writes:

>> For `throw', it works by changing `throw <java-object>' into a call to
>> _Jv_Throw, just as gcj does.

Andrew> Yes, but you need to allow for setjmp/longjmp exceptions, just as the
Andrew> C++ compiler does:

Oops, thanks.  I did this.

Andrew> Also, prhaps a useful addition to this would be to issue an error
Andrew> message if a program attempts to throw or catch Java exception by
Andrew> value instead of by reference.

I agree.  I'll do this too.

Tom




More information about the Gcc-patches mailing list