This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
CNI & Exception handling
- From: "RamrajPrabu Balasubramanian" <ramrajprabu at hotmail dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 23 Aug 2004 11:17:27 -0700
- Subject: CNI & Exception handling
- Bcc:
Hi,
The project I'm working on involves writing CNI wrappers to existing
c++ classes that we have. the problem is these c++ classes throw exceptions
and there are a lot of them. I know catching c++ exceptions and rethrowing
them as java exceptions casuses the " mixing java and c++ exceptions in same
translation unit is not allowed" error.
Getting past this hurdle is very important for us to adopt gcj in our
projects, can some one suggest some ways to handle these c++ exceptions
without changing our existing c++ code ?
thanks,
Ramraj