Fix for %%javaexception and directors so that all the appropriate throws clauses are generated

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11797 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-12-23 01:05:17 +00:00
commit 6dad327ed3
4 changed files with 32 additions and 0 deletions

View file

@ -3724,6 +3724,9 @@ public:
String *upcall = NewStringf("self.%s(%s)", symname, imcall_args);
// Handle exception classes specified in the "except" feature's "throws" attribute
addThrows(n, "feature:except", n);
if (!is_void) {
Parm *tp = NewParmFromNode(returntype, empty_str, n);