From cedfbfbee87cefe5b402ef2360719bd86accb99e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 13 May 2017 16:16:29 +0100 Subject: [PATCH] Revert "java : noexcept method can't raise Swig::DirectorException" This reverts commit e13eaaae2118309af479333ab97244e8c28b5fd0. --- Source/Modules/java.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index b814c1576..b380565b5 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -4375,11 +4375,9 @@ public: Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_method_ids[%s], %s);\n", methop, imclass_name, methid, jupcall_args); - if (!Getattr(n, "noexcept")) { // Generate code to handle any Java exception thrown by director delegation directorExceptHandler(n, catches_list ? catches_list : throw_parm_list, w); - } - + if (!is_void) { String *jresult_str = NewString("jresult"); String *result_str = NewString("c_result");