%ignore and virtual director methods fix - problem reported by Roy Sutton

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-10-21 23:40:28 +00:00
commit 8d2830b228
5 changed files with 9 additions and 6 deletions

View file

@ -3207,7 +3207,8 @@ class JAVA : public Language {
String *super_call = Swig_method_call(super, l);
if (is_void) {
Printf(w->code, "%s;\n", super_call);
Printf(w->code, "return;\n");
if (!ignored_method)
Printf(w->code, "return;\n");
} else {
Printf(w->code, "return %s;\n", super_call);
}
@ -3221,7 +3222,8 @@ class JAVA : public Language {
if (!is_void)
Printf(w->code, "return %s;", qualified_return);
else
Printf(w->code, "return;\n");
if (!ignored_method)
Printf(w->code, "return;\n");
}
if (!ignored_method) {