diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2017-11-29 18:44:37 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2017-11-29 20:32:15 +0000 |
commit | 406c7a732a07876596164d98a2f50cb22767f306 (patch) | |
tree | ff7c97c155e5d0b24e37d5d7e9b111af4ec0da38 /Lib/java/java.swg | |
parent | eef3e7aa8f3770a85ac77169d28254ee2ed268f3 (diff) | |
download | swig-406c7a732a07876596164d98a2f50cb22767f306.tar.gz |
Add Swig::DirectorException directorthrows typemap for Java
For use with a global %catches(Swig::DirectorException)
Diffstat (limited to 'Lib/java/java.swg')
-rw-r--r-- | Lib/java/java.swg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/java/java.swg b/Lib/java/java.swg index 809fc40a3..184ee56aa 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -1051,11 +1051,15 @@ Swig::LocalRefGuard $1_refguard(jenv, $input); } %{ SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, $1); return $null; %} -// For directors to raise/throw the original Java exception +/* For methods to raise/throw the original Java exception thrown in a director method */ %typemap(throws) Swig::DirectorException %{ $1.raiseJavaException(jenv); return $null; %} +/* Java to C++ DirectorException should already be handled. Suppress warning and do nothing in the + event a user specifies a global: %catches(Swig::DirectorException); */ +%typemap(directorthrows) Swig::DirectorException "" + /* Typemaps for code generation in proxy classes and Java type wrapper classes */ /* The javain typemap is used for converting function parameter types from the type |