More %ignore director fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-09-27 21:24:44 +00:00
commit 95958855cf
7 changed files with 787 additions and 710 deletions

View file

@ -3196,14 +3196,14 @@ class JAVA : public Language {
}
if (!pure_virtual) {
String *super_call = Swig_method_call(super, l);
if (is_void) {
Printf(w->code, "%s;\n", Swig_method_call(super,l));
Printf(w->code, "%s;\n", super_call);
Printf(w->code, "return;\n");
} else {
String *super_call = Swig_method_call(super, l);
Printf(w->code, "return %s;\n", super_call);
Delete(super_call);
}
Delete(super_call);
} else {
Printf(w->code, "SWIG_JavaThrowException(JNIEnvWrapper(this).getJNIEnv(), SWIG_JavaDirectorPureVirtual, ");
Printf(w->code, "\"Attempted to invoke pure virtual method %s::%s.\");\n", c_classname, name);