cni and exceptions

Tom Tromey tromey@cygnus.com
Sun Sep 3 10:23:00 GMT 2000


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


More information about the Java mailing list