This is the mail archive of the java-discuss@sources.redhat.com 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: cni and exceptions


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

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