Error handling and thirdparty licenses (was: [JAWIN] JVM access violation in Type Browser)

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Organization Arosii Information Systems A/S
Message-ID <[email protected]>
Hi Roger

Morten Andersen wrote:

>   HANDLE_JNI_EXCEPTIONS() for catching all the exceptions we throw.
>
> So at least for a first attempt to "catch all the rest", and avoid
> native JVM-crashes, I think I will look into applying a catch(...) macro
> over the weekend (I just did a quick search in Stroustrup's C++ guide,
> and it seems he describes a way to retrieve the caught exception, when
> using the ...-catch, so it should hopefully be trivial).

I finally got around to applying this. Please see the
HANDLE_WIN32_EXCEPTIONS in JNIException.h. I used a CPP class from
http://www.codeproject.com/cpp/exception.asp and it seems to work well
(I wrote a few testcases). Although I am not that fluent in writing CPP
macros/defines so if either of you thinks that there is a smarter way to
  do this, please feel free to change it.

And since I was in the process of updating the license information with
the relevant info for this class, I also added license information for
Apache Xalan and Xerces used by the Type Browser.

Best Regards
Morten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.