This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: cni and exceptions
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: cni and exceptions
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 03 Sep 2000 11:29:39 -0600
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <20000903165808.A16354@strix.eductussyd.se>
- Reply-To: tromey at cygnus dot com
CNI> Basically, this means that you cannot in C++ catch an exception
CNI> value (Throwable) thrown from Java code, nor can you use throw
CNI> on a Java exception value from C++ code, and expect to be able
CNI> to catch it in Java code. We do intend to change this.
Oskar> Is this info out of date or just incorrect? I've spotted many
Oskar> "try { .. } catch (jthrowable ..) { .. }" constructs in the
Oskar> libgcj sources.
That info is out of date.
Now you can catch and throw Java exceptions from C++ if you are using
a new-enough g++.
Tom