Various warning fixes for Visual Studio 2003 C++ compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0017b084aa
commit
de4c1d3322
18 changed files with 29 additions and 16 deletions
|
|
@ -31,9 +31,11 @@ short full_of_exceptions(int num) {
|
|||
|
||||
|
||||
%typemap(throws, throws="IllegalAccessException") int {
|
||||
(void)$1;
|
||||
jclass excep = jenv->FindClass("java/lang/IllegalAccessException");
|
||||
if (excep)
|
||||
if (excep) {
|
||||
jenv->ThrowNew(excep, "Test exception");
|
||||
}
|
||||
return $null;
|
||||
}
|
||||
%inline %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue