director fixes on error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1c9405d4bf
commit
9fe21957a6
1 changed files with 2 additions and 2 deletions
|
|
@ -3029,7 +3029,7 @@ class JAVA : public Language {
|
||||||
/* Make sure that we return something in the case of a pure
|
/* Make sure that we return something in the case of a pure
|
||||||
* virtual method call for syntactical reasons. */
|
* virtual method call for syntactical reasons. */
|
||||||
if (!is_void)
|
if (!is_void)
|
||||||
Printf(w->code, "return %s;", qualified_return);
|
Printf(w->code, "return 0;");
|
||||||
else
|
else
|
||||||
Printf(w->code, "return;\n");
|
Printf(w->code, "return;\n");
|
||||||
}
|
}
|
||||||
|
|
@ -3307,7 +3307,7 @@ class JAVA : public Language {
|
||||||
/* emit code */
|
/* emit code */
|
||||||
if (status == SWIG_OK && output_director) {
|
if (status == SWIG_OK && output_director) {
|
||||||
if(!is_void) {
|
if(!is_void) {
|
||||||
Replaceall(w->code,"$null", qualified_return);
|
Replaceall(w->code,"$null", "0");
|
||||||
} else
|
} else
|
||||||
Replaceall(w->code,"$null","");
|
Replaceall(w->code,"$null","");
|
||||||
Wrapper_print(w, f_directors);
|
Wrapper_print(w, f_directors);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue